Re: the tcsh login-shell problem -- ideas?
Matt Holgate <[email protected]> Tue, 28 May 2002 08:59:48 +0100
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
Will Partain wrote: > and then shoves 'exec /bin/sh' and then the script you want > into stdin. As long as the shell on the far side is > /bin/csh (the old one) or any Bourne-ish shell, it works; > if it's tcsh, it fails. I was playing around with this and found if you remove the "exec" it seems to work: (echo "exec /bin/sh"; echo "cat /etc/passwd") | ssh frodo newgrp users fails, but... (echo "/bin/sh"; echo "groups") | ssh frodo newgrp users ...works fine. Weird. Matt. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm