WARN: stdin/stdout is not a TTY; using /dev/console
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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 .
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.