[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] non login shells



Hello,

I'm mucking about with a NAS box and ssh and struck a problem. When I
log-in to the box and execute a command that works as the log-in shell
has the correct path. However when executing via ssh without logging
in it fails as $PATH doesn't contain the right value.

The box uses the ash shell, not bash and I'm struggling to add the new
path

~/.ashrc with PATH=/new/path:$PATH is bringing no joy

I'd add it to the global path, but I don't know where that is
set. log-in variables seem to be set in /etc/profile

Any help appreciated, 

Simon

_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html

GNU - The Choice of a Complete Generation