WARN: stdin/stdout is not a TTY; using /dev/console
hi guys
I have an application (DRBD) that I'm trying to start using a bash script. When I start the application with /etc/init.d/drbd start, it looks for another computer to connect to. It asks if the user wants to wait for the peer or not but when I use echo or pass the answer, it just gives me that error message: WARN: stdin/stdout is not a TTY; using /dev/console Quote:
echo yes | service drbd start it shows me that error message. Any way I can just do it? anyone? thanks |
The script starts a new instance of the shell. You have to connect that to your interactive shell (e.g. via parameters). I'd guess (!) that's why your script has no tty.
That is only valid in case i understood your question correctly ;). |
Quote:
Thanks |
Sorry, I'm no expert and being in a real hurry I don't have the time to search for the place where this was mentioned. Try beginning here:
http://www.tldp.org/LDP/Bash-Beginne...e.html#chap_03 and look for "bash shells" as a key word. Here is more http://www.tldp.org/guides.html#abs http://www.justlinux.com/nhf/Shells/..._Commands.html Good luck. |
Hello alirezan1,
I'm facing same problem. Any luck on this? Did you mamange to fix this? Please help. Thanks, NM. |
All times are GMT -5. The time now is 08:01 AM. |