I have been trying to run commands from the Gnuite's load/run applet(see link below) . However they don't appear to be executing. I know the executable script files work because when I run them form Xterm command line they work.
I have been using the following to execute the command from the applet's run command:
./go2drv
or
sh ./go2drv
Neither one of these commands work within the applet but do work at the Xterm command line
I have a few questions.
*********************
Can someone suggest a method to make them execute "go2drv" from this applet.
Is there a way to have the applet open Xterm and then execute the "go2drv" file?
I must be dense.
I put the files into /usr/bin and still get no results when using the load/run app.
When I open xTerm and issue the same commands that I used in the load/run app it works.
Does the Load/Run app "run" command line actually issue a command to xTerm, if not where does it send it to?
By the way I have tried to uninstall and re-install the Load/Run app and that didn't work either.
I'm assuming you mean running from within xTerm. If so then Yes, works great.
But when using the same command via run/load applet nothing happens, however after running the command the run/load command states "command completed with exit code 1".
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.
OK, Here's what I'd do:
as root,
move the cifs.ko file to /lib/modules
add the following line to /etc/init.d/minircS near the top after the PATH= line:
#!/bin/sh
# mount cifs shared folder
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
mount /home/user/MyDocs/.documents/foto
Put this script in /usr/bin, reboot and you're good to go.
Call it whatever you like, no need for ./ or a .sh extension. just make it executable.