I want to put two commands together
I need the script to login:
ssh [email protected]
Then I need to the script to run (while logged in to [email protected] via ssh ):
find /var/mobile/Media/Music/ -name "*.mp3" -exec ln -s {} /var/mobile/Media/Music/"All Songs" \;
You can include a command to run on the remote machine as the last argument to ssh
You can try:
sshpass -p YOUR_PASS_HERE ssh [email protected] find /var/mobile/Media/Music/ -name "*.mp3" -exec ln -s {} /var/mobile/Media/Music/"All Songs" \;
Cheers, André Gondim http://andregondim.eti.br