Re: the tcsh login-shell problem -- ideas?
Matt Holgate <[email protected]> Wed, 29 May 2002 08:55:22 +0100
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
Matt Holgate wrote: > (echo "exec /bin/sh <<\"EOF\""; cat test.sh; echo; echo "exit \$?") | > ssh frodo newgrp users; echo "Exit code was $?" Actually, maybe you want to remove the "exec" - otherwise the tcsh process which is interpreting the << and piping the data into /bin/sh might be replaced before it has processed the entire script. Not sure if this is true, but its just a wee thought... M. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm