12

[SOLVED] Strange crontab-script interaction (bash)

view full story
linux-howto

http://ubuntuforums.org – I'm running Ubuntu 12.04 and bash. I've written a pair of shell scripts that allow me to set an alarm which, after ringing, unsets itself. The first, alarmset, allows me to enter a time and modifies the alarm line in the crontab. That line launches the second script, alarmring, which launches a radio player in a browser window and then comments out the alarm line in the crontab. alarmring is behaving strangely. If I run it myself directly, it performs both actions: it launches the browser window and edits the crontab. But if I run alarmset, when the crontab launches alarmring at the appointed (Hardware)