I want to put two commands together
I need the script to login:
ssh root@192.168.0.188
Then I need to the script to run (while logged in to root@192.168.0.188 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 root@192.168.0.188 find /var/mobile/Media/Music/ -name "*.mp3" -exec ln -s {} /var/mobile/Media/Music/"All Songs" \;
Cheers, André Gondim http://andregondim.eti.br