On Sat, Feb 24, 2001 at 04:33:26PM -0000, Tarlach mentioned:
> send us a copy of the output from:
> ssh evilxander sh -c 'set; echo stty:;stty -a;echo tty:;tty'
Of course, without the -t, stty doesn't print anything!
[root at angel named]# ssh evilxander sh -c 'set; echo stty:;stty -a;echo
tty:;tty'
BASH=/bin/sh
BASH_VERSINFO=([0]="2" [1]="04" [2]="11" [3]="1" [4]="release"
[5]="i386-redhat-linux-gnu")
BASH_VERSION='2.04.11(1)-release'
DIRSTACK=()
DISPLAY=evilxander.sunnydale.antefacto.com:10.0
EUID=0
GROUPS=()
HOME=/root
HOSTNAME=evilxander.sunnydale.antefacto.com
HOSTTYPE=i386
IFS='
'
LOGNAME=root
MACHTYPE=i386-redhat-linux-gnu
MAIL=/var/mail/root
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PPID=18970
PS4='+ '
PWD=/root
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=2
TERM=dumb
UID=0
USER=root
XAUTHORITY=/tmp/ssh-XXp9pOPN/cookies
_=sh
stty:
tty:
not a tty
stty: standard input: Invalid argument
> it should give a "not a tty" error and have TERM=dumb, etc.
>> actually in your case you may have to do:
> ssh linux 'sh -c "(set; echo stty:;stty -a;echo tty:;tty)1>&1"'
> so you see the output!
Didn't seem to make a difference to the output. I tried;
[root at angel named]# ssh evilxander sh -c 'stty -a 1>&1'
select: Bad file descriptor
Gah. I give up.
Kate
--
When I say 'free', I mean 'free': free from bond, of chain or command:
to go where you will, even to Mordor, Saruman, if you desire. "
-- Gandalf, paraphrasing the choice between Free and Non-free software
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!