View Single Post
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#296
Originally Posted by Spotfist View Post
Do I execute with "exec=/home/user/scripts/starcon.sh" if so then no it doesn't execute it does nothing and goes to the next line.
On commandline you call the script like that
/home/user/scripts/starcon.sh
or like that
/bin/sh /home/user/scripts/starcon.sh

The latter one if the file is not marked as executable. You can check that with calling the command
ls -l /home/user/scripts/starcon.sh
the resulting line should begin with
-rwxr--r-- (or similar)
On position 4 and probably 7 and 10 there should be an 'x', then it's executable. If there is a '-', it's not executable.

I have replaced "#!/bin/sh" with /bin/sh
Where did you replace that? In the script, on command line or in alarmed?

and have also replaced the "ANY" with "web'n'walk" still nothing, I assumed the # implied that something was commented out but seriously I was cluching at straws as I found that on another phone control page.
Yes, the '#' comments out the following line. In the special case it's in a script on the very first line and is followed by an exclamation mark '!' this has a a special meaning.

Does web'n'walk have to be in caps? will try that...
I don't think so. But don't forget to put it in quotation marks.

I tried a reboot script aswell but this also doesn't seem to work when I try exec=/home/user/scripts/reeboot.sh I have created the scripts in leafpad could that be a problem?

they look like this

/bin/sh dbus....blah....blah

all on one line.
In the script just call the dbus command with no /bin/sh preceeding the line. Also don't put that exec= to the call. I guess you may want to have a look at the scripts in the wiki and follow the guides explained there.
 

The Following User Says Thank You to x-lette For This Useful Post: