in reply to Net::Telnet stalls
PS1='$' export PS1But you don't know for sure what shell they'll have, so why not start up the one you want?
exec env PS1='$' /bin/bashYou might want to set their path, too, to make sure you're really running the program you expect to be. In fact, why not clear out their current environment and start up bash without reading their .bashrc or .profile at all?
exec env - PS1='$' PATH=/usr/bin:/bin /bin/bash --norc --noprofile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Net::Telnet stalls
by jcpunk (Friar) on Jun 19, 2003 at 14:37 UTC | |
|
Re: Re: Net::Telnet stalls
by JoeJaz (Monk) on Jun 19, 2003 at 14:54 UTC |