The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-01-2008
Crigamorfin Crigamorfin is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
Bash script on startup does not respond as expected

Hi,

I have a bash script which I have referenced in the rc.local of my fedora linux OS. However it doesnt respond the same as when run in terminal from fedora.

The bash script has a series of interactive questions that require user input as shown:

#!/bin/bash
echo "Do you want to use fixed IP address?"
read RESPONSE
...

When this script is run from terminal with Fedora i type in "yes" and the response is recorded as expected in varaible.

However the same script on bootup requires me to input the same thing twice on further examination the first input I type is irrelevant?!? Any ideas why it responds differently on bootup?

Cheers