Re: the tcsh login-shell problem -- ideas?
Will Partain <[email protected]> Sat, 01 Jun 2002 11:45:42 +0100
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
Matt writes: > Try the following (although I only tested from a cygwin client to a > linux server with bash, ash and tcsh -- no warranties for anything else :)). > > (echo "exec /bin/sh <<\"EOF\""; cat test.sh; echo; echo "exit \$?") | > ssh frodo newgrp users; echo "Exit code was $?" > > Bizarelly adding an 'echo EOF' at the end just causes the remote /bin/sh > to complain that it cannot find the command 'EOF', but missing it off > doesn't seem to hurt. Going to a solaris box with /bin/csh on the far side, it *insists* on the EOF terminator and never finds it, no matter where I stick it. Yeeps! Twisty passages, all alike... Will