brew is not found when I sshpass to the server
0
votes
1
answer
835
views
brew is installed on the server but when I sshpass to the server, it throws
bash: brew: command not found
and same is happening for ideviceinstaller bash: ideviceinstaller: command not found
This is the command I'm using
sshpass -p password ssh -oStrictHostKeyChecking=no -oCheckHostIP=no user@**** 'cd /Users/user/Documents/workspace/iOS; brew'
sshpass -p password ssh -oStrictHostKeyChecking=no -oCheckHostIP=no user@**** 'cd /Users/user/Documents/workspace/iOS; ideviceinstaller -l'
I have exactly same .bashrc and .bash_profile.
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export ANDROID_HOME=/Users/user/Library/Android/sdk
export GIT_SSH_COMMAND='ssh -o KexAlgorithms=+diffie-hellman-group1-sha1'
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
.profile
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Not sure what mistake I'm making. Please help
Asked by Ram
(1 rep)
Sep 23, 2019, 03:45 AM
Last activity: Sep 23, 2019, 05:55 AM
Last activity: Sep 23, 2019, 05:55 AM