View Single Post
Posts: 34 | Thanked: 2 times | Joined on Mar 2006
#9
Here's the script:
****************
#!/bin/sh
user=user
if grep $user /etc/passwd
then password=rootme
sudo su -
cd /home/user/MyDocs/.documents
./foto1.sh
fi

The script for foto1.sh is:
**************************
grep -q cifs /home/user/MyDocs/.documents || insmod ./cifs.ko
mount -t cifs //192.168.001.112/Photos /home/user/MyDocs/.documents/foto -o domain=MSHOME,user=guest,password=guest


Both scripts function from the xTerm prompt, but do nothing running from the Run/Load applet.

Thanks for checking this out.