Shell help needed
Duane Griffin
duaneg at dghda.com
Thu Oct 11 11:45:48 BST 2007
On 11/10/2007, David Cantrell <david at cantrell.org.uk> wrote:
> I'm ever so embarrassed to have to ask this, but I have a script which
> sshes to another machine, starts a screen(1) on it, does some stuff, and
> then leaves me at a shell prompt. That stuff is failing because the
> $PATH isn't set correctly:
>
> $ ssh -t some.random.host "screen -S foo /usr/local/bin/bash -c 'echo
> $PATH;/usr/local/bin/bash'"
>
> $PATH here doesn't contain any of the customisations in my .profile or
> .bashrc. And no combination of -i or -l when I invoke bash seems to do
> the job. Help?
Works fine here. Maybe try sticking a "strace -f -etrace=file
-otrace.log" in front of the shell invocation to see exactly which
files it is trying to read?
Cheers,
Duane.
--
"I never could learn to drink that blood and call it wine" - Bob Dylan
More information about the london.pm
mailing list