Hi,
The question may be dumb, but I just start my journey of learning.
How do I put these lines of command to one executable script and have it execute properly? By properly I mean each of the commands gets executed interdependently. I tried attaching ;, &&, & to the end of lines, none of them works as I wish. If I don't attach anything at end of lines, only the first line is executed.
exec /usr/local/bin/sudo sshfs -o allow_other,default_permissions user1@192.168.1.254:/jails/samba/store1 ~/smb_store1
exec /usr/local/bin/sudo sshfs -o allow_other,default_permissions user1@192.168.1.254:/jails/samba/store2 ~/smb_store2
exec /usr/local/bin/sudo sshfs -o allow_other,default_permissions user1@192.168.1.254:/jails/samba/store3 ~/smb_store3
Thanks.
The question may be dumb, but I just start my journey of learning.
How do I put these lines of command to one executable script and have it execute properly? By properly I mean each of the commands gets executed interdependently. I tried attaching ;, &&, & to the end of lines, none of them works as I wish. If I don't attach anything at end of lines, only the first line is executed.
exec /usr/local/bin/sudo sshfs -o allow_other,default_permissions user1@192.168.1.254:/jails/samba/store1 ~/smb_store1
exec /usr/local/bin/sudo sshfs -o allow_other,default_permissions user1@192.168.1.254:/jails/samba/store2 ~/smb_store2
exec /usr/local/bin/sudo sshfs -o allow_other,default_permissions user1@192.168.1.254:/jails/samba/store3 ~/smb_store3
Thanks.