LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2008, 05:28 PM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Rep: Reputation: 15
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:
# service drbd start
Starting DRBD resources: [ d(drbd1) s(drbd1) n(drbd1) ].
..........
***************************************************************
DRBD's startup script waits for the peer node(s) to appear.
- In case this node was already a degraded cluster before the
reboot the timeout is 120 seconds. [degr-wfc-timeout]
- If the peer was available before the reboot the timeout will
expire after 0 seconds. [wfc-timeout]
(These values are for resource 'drbd1'; 0 sec -> wait forever)
To abort waiting enter 'yes' [ 14]:
so I have to say "yes" to abort waiting for peer forever. When I do this:

echo yes | service drbd start
it shows me that error message. Any way I can just do it? anyone?

thanks
 
Old 10-23-2008, 02:34 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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 .
 
Old 10-23-2008, 01:43 PM   #3
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JZL240I-U View Post
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 .
Can you please tell me how I can do this?

Thanks
 
Old 10-27-2008, 09:44 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 06-07-2010, 09:00 PM   #5
nikhil.manohar
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Hello alirezan1,

I'm facing same problem.
Any luck on this? Did you mamange to fix this?

Please help.

Thanks,
NM.
 
  


Reply

Tags
drbd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling stdin and stdout in a daemon inakizi Programming 4 12-12-2007 11:13 PM
Details of stdin and stdout pixellany Linux - Newbie 1 01-11-2006 01:21 PM
stdout stdin Furlinastis Linux - Newbie 3 08-11-2005 11:00 PM
redirect stdin/stdout of running process xtravar Linux - Software 3 03-06-2004 07:54 PM
stdin -> port -> stdout acid_kewpie Linux - Networking 5 04-12-2002 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration