View Single Post
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#108
Originally Posted by evad View Post
Installed alarmed 0.1.8-2 yesterday with great excitement to finally have tweakr profiles automatically switched, but unfortunately it doesn't seem to work, similarly to user skalogre couple of pages back in this thread. Here's my alarm_queue.ini:

Code:
[#00000b54]
(...)
action0.exec_command: /opt/alarmed/tweakrprofileswitcher.sh Dyskretny
(...)
I went down this path and created alamed command execution event with /opt/alarmed/tweakrprofileswitcher.sh Noc as a command to execute, which has added following entry to the queue:

Code:
[#00000b8e]
cookie: 2958
trigger: 1269731580
flags: 131072
alarm_appid: Noc
alarm_time: 1269645180
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: -1
alarm_tm.tm_min: -1
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
recur_count: -1
action_cnt: 1
recurrence_cnt: 1
action0.flags: 36
action0.exec_command: /bin/ash -c '/opt/alarmed/tweakrprofileswitcher.sh Noc'
recurrence_tab0.mask_min: 8192
recurrence_tab0.mask_hour: 8388608
recurrence_tab0.mask_mday: 4294967294
Unfortunately - that doesn't work either. Additionally, when I try to execute command above manually, I get this:

Code:
user@n900:/var/cache/alarmd$ /bin/ash -c '/opt/alarmed/tweakrprofileswitcher.sh Noc'
/bin/ash: /opt/alarmed/tweakrprofileswitcher.sh: not found

# below command proves file is really there
user@n900:/var/cache/alarmd$ ls -l /opt/alarmed/tweakrprofileswitcher.sh
-rwxr-xr-x    1 root     root         1018 Mar 16 10:14 /opt/alarmed/tweakrprofileswitcher.sh
:(

UPDATE: GOT IT!
In /opt/alarmed/tweakrprofileswitcher.sh script I've changed first line from #!/bin/bash to #!/bin/ash - and now switching profiles works (even without a need to create a custom tweakrprofileswitcher.sh command)! Woohoo! :)
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________

Last edited by evad; 2010-03-26 at 23:33. Reason: Solution found :)
 

The Following User Says Thank You to evad For This Useful Post: