Ik have written an simpel script to automount mij Samba share over SSH.
#!/bin/bash
mkdir /Volumes/Samba
ssh -L139:192.168.123.2:139 test@remotetest.dyndns.org
#Here must be opened a new shell because other wise the mounting of the samba share will by tried on the server where I connect to.
mount_smbfs //test@localhost/test /Volumes/Samba
My question is: How do you open a new shell in a shell script so the following commands wil be entered in that shell. Is this possible?
The client I will put op this shell script is Mac osx
Server Ubuntu Linux
Many Thannks!