This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ssh -t user@server.com 'df -h' | |
^^^^^^ does not work ^^^^^^^ | |
ssh: command not found | |
------------------------------------------ | |
#!/usr/bin/env bash | |
/usr/bin/ssh -t user@server.com 'df -h' | |
^^^^works fine^^^^^^ | |
WHY THE FUCK DO I NEED TO SPECIFY A PATH FOR SSH? | |
"/usr/bin" is in my $PATH for `bash` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try an 'echo $PATH' in your script to verify that.