PDA

View Full Version : Problem running script



doubleudee
12-05-2011, 11:43 AM
I've copied a script into usr/script and have tried running it via the plugins to run scripts.
I get to the part where the plugin states "Do you wish to run - 'myscriptname'", and when I click Ok i get a message that states "Unable to run script - usr/script/myscriptname.sh can't find script myscriptname.sh"

Is this a permissions thing or what as i have tried setting the permissions to 755 and still get the same message.
Or could it be something to do with the folder?

oldfart
12-05-2011, 02:53 PM
from telnet
cd /usr/script
ls

you script should be listed - if yes then try
sh yourscript.sh

if error, then your permissions are wrong
chmod 777 yourscript.sh

and try again
if it still errors, post the script 1st 2 lines here, with its name

doubleudee
16-05-2011, 06:11 AM
OK, Thanks for that, I'm getting problems logging in to this site from home at mo, so I'll check it out tonight.

Cheers

wd