Last active
December 23, 2016 15:46
-
-
Save nwhobart/5bd6103d756361e711eb3a67edc7b18f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 [email protected] 'df -h' | |
^^^^^^ does not work ^^^^^^^ | |
ssh: command not found | |
------------------------------------------ | |
#!/usr/bin/env bash | |
/usr/bin/ssh -t [email protected] '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.