Thread
:
Gnuite applet with run command
View Single Post
pc4ever1
2006-08-07 , 12:35
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.
Quote & Reply
|
pc4ever1
View Public Profile
Send a private message to pc4ever1
Find all posts by pc4ever1