SOLVED Re: Cannot rum multiple command on remote machine via SSH
Am 06/02/2023 um 19:05 schrieb Greg Wooledge:
ssh LAP2 'type hibernate.sh; echo "$PATH"'
_Touché !_ You nailed it:
$ ssh LAP2 'type hibernate.sh; echo "$PATH"'
bash: line 1: type: hibernate.sh: not found
/usr/local/bin:/usr/bin:/bin:/usr/games
For some reason, I though ssh would inherit the $PATH from .profile,
which sources .bashrc, but of course this is not an interactive shell.
--
Ottavio Caruso
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Reply to: