View Single Post
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#118
Originally Posted by shapeshifter View Post
edit:
Package updated and tested, should work for everyone now?
Works ok for me.

though this doesn't explain why your syncevolution command runs fine manually but not from the alarmd_queue.ini... :| I *could* remove the '/bin/ash -c' prefix but I think that this would break commands that have stuff like '>>' in them and things.
Does it make a difference that in this case /bin/ash is actually trying to execute a python app/script? Doesn't that conflict in some way?

I did workaround this, tough. Instead of executing /opt/syncevolution/sync.py I do /usr/bin/syncevolution - actual syncevolution application (sync.py is just a front-end for syncevolution). This way my syncing via alarmed works ok.

Generally, I rather wouldn't automatically insert any command execution prefixes as you do with /bin/ash -c 'command-entered-by-user' - if one user is savvy enough to schedule a custom command, he/she should type command exactly as it should run.

General suggestions/wishlist to Alarmed
Since it gladly works as I expected, here's couple of my suggestions to the app:
  • Add ability to disable/enable specific jobs, instead of deleting/adding them.
  • Automatically remove single-run jobs, ie. "alarm in 5 minutes" - add option to delete that job once it goes off.
  • On the jobs list only display name of job given by user (currently job descriptions, especially those based on cron syntax are painfully long).
  • Add more built-in functions, ie. launching device backup (suggested by someone before), (dis)connect cellular/wifi adapters, switch 2G/3G modes, change telepathy accounts online/offline statuses etc.
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________

Last edited by evad; 2010-03-28 at 00:44. Reason: Added suggestions
 

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