LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-10-2004, 03:38 PM   #1
lazyboy0001
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
stderr is not a tty - where are you?


I am running slackware 10.0 box. When I remote log on to the linux box using "ssh hostname ls",
I got "stderr is not a tty - where are you?" as the first output line. Anyone knows how to solve
this problem? Thanks.
 
Old 08-10-2004, 04:45 PM   #2
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
I personally dont know how to solve it, but my two friends the Search Forum button and Google.com do and they told me to look at http://www.linuxquestions.org/questi...14#post1097514
 
Old 08-10-2004, 05:13 PM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
You may try the -T switch like ssh -T hostname "ls"
 
Old 08-10-2004, 05:14 PM   #4
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
Quote:
Originally posted by SiegeX
I personally dont know how to solve it, but my two friends the Search Forum button and Google.com do and they told me to look at http://www.linuxquestions.org/questi...14#post1097514
You mind if I quote you on that? (See Sig, I'll get rid of it if it bothers you)
 
Old 08-10-2004, 06:11 PM   #5
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
haha, no problem, I dont think ive ever been in sombodies sig before.
 
Old 08-11-2004, 10:16 AM   #6
lazyboy0001
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
SiegeX:

Before I post this message, I googled and searched this forum and other forums already.
The link you show won't solve my problem.

Cedrik:

"ssh -t hostname ls" works. However, this is not a permanent solution and it won't work
when using ssh to communicate btwn computers in a beowulf system.
Even "alias ssh='ssh -t' " won't work.
 
Old 08-11-2004, 10:55 AM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
lazyboy0001

1. did you try -T instead of -t , ssh -T <hostname>

2. Are you so much lazy that you can not type 2 more characters ?
 
Old 08-11-2004, 03:20 PM   #8
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
Lucky for you I have another friend, a little birdie, and he whispered to me to go to http://blogs.bwerp.net/archives/2004/05/10/scp
 
Old 08-12-2004, 10:03 AM   #9
lazyboy0001
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks all of you. The 'ssh hostname command' is not an interactive command for my situation,
so that 'ssh -T ...' or 'ssh -t ...' and the method shown from the link provided by SiegeX is not
suitable for me. But thanks, you let me know more about ssh command and environment
configurations. I solved the problem now although the method is quite awkward. The solution is:
"Do NOT source /etc/profile". I compared the environment variables before and after sourcing
/etc/profile and could not find any valuable difference at all. I don't know why but it works
anyway. Any comment about the reason?
 
Old 08-12-2004, 12:10 PM   #10
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
I find 2 section in /etc/profile that may cause the problem :
...
export HOSTNAME="`cat /etc/HOSTNAME`"
...
if [ "$TERM" = "" -o "$TERM" = "unknown" ]; then
TERM=linux
fi
 
Old 08-12-2004, 01:35 PM   #11
lazyboy0001
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
I copy the 2 sections to ~/.bashrc to invoke it. The error message does not appear again.
Apprently, they are not the reason.
 
Old 08-12-2004, 02:11 PM   #12
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
At least you found a method to catch them
 
Old 12-02-2005, 09:44 AM   #13
shtrom
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
After investigating a little in my /etc/profile (currently Slackware 10.1.0), I found the stderr is not a tty message to be printed by biff. It is launched by /etc/profile:
Code:
(...)
if [ -x /usr/bin/biff  ]; then
 biff y
fi
(...)
When biff is not launched on a tty, it seems to be issuing this error message.

The workaround I used was to check using tty -s that the terminal is actually a tty before using biff:
Code:
(...)
if [ -x /usr/bin/biff  ] && tty -s; then
 biff y
fi
(...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
stderr is not a tty - where are you? xsession error aus9 Slackware 1 09-25-2004 10:16 AM
Server refused to allocate pty. stderr is not a tty - where are you? gaslq Linux - General 5 08-09-2004 04:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
stderr is not a valid tty ekoome Slackware 4 02-17-2004 06:08 AM
stderr is not a tty where are you? davidschob Slackware 6 10-31-2003 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:27 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration