Sunday, February 04, 2024

Re: Proper way to set PATH environment with SSH non-interactive command

Thus said "Allan Streib" on Sun, 04 Feb 2024 20:54:26 -0500:

> Just send the full path to your script in the ssh command, and set up
> the rest of the environment within the script.

Yes, this too is an option. It may actually be the best option in my
opinion. If the user knows that their binary is found in a non-standard
path, then the simplest thing is to specify the full path to the binary
and leave the environment alone.

Thanks,

Andy

No comments:

Post a Comment