Getting return value in os.system rsh call

Andrew migmog99 at hotmail.com
Thu Jan 30 06:17:33 EST 2003


DUH.... Erik, I should have read more closely.....

... I need the slash. Then it works. The thing is I've never been
completely happy with my understanding of Unix quoting.

Can anyone explain why putting the slash in makes a difference?

Also, how do I get rid of the stty error messages?

cheers
Andrew

11:13:23$ rsh -n remote "./bad.py; echo \$?; hostname"
stty: standard input: Invalid argument
stty: standard input: Invalid argument
remote
123
remote
11:13:38$ rsh -n remote "./bad.py; echo $?; hostname"
stty: standard input: Invalid argument
stty: standard input: Invalid argument
remote
0
remote




More information about the Python-list mailing list