blingerlive
May 2nd, 2009, 09:57 PM
Hi All,
I was trying to script install NIS and ubuntu-restricted-extras
e.g.
#!/bin/sh
apt-get -y install nis
The problem is that the installer requires user input. For example, for java, it needs the user to agree to the license agreement. So if you run the above script, it will just "hang" until the user enters an input.
Is there a straight forward way to automate the input? So it doesn't stall the script installer.
thanks,
I was trying to script install NIS and ubuntu-restricted-extras
e.g.
#!/bin/sh
apt-get -y install nis
The problem is that the installer requires user input. For example, for java, it needs the user to agree to the license agreement. So if you run the above script, it will just "hang" until the user enters an input.
Is there a straight forward way to automate the input? So it doesn't stall the script installer.
thanks,