Tag Info

Hot answers tagged

6

Cron runs in an environment that knows nothing about the display manager ($DISPLAY isn't set). Your terminal window that you've been testing in has this set for it. If you tried it in a "real" terminal, or over SSH, you'd see it break. If you've only got one X server running, just specifying the display might work: * * * * * DISPLAY=:0 firefox ... You ...


3

You don't state what the log file contains; I assume it's empty. If that's the case, it looks like your problem is due to the path used in the crontab file: 30 22 * * * /Desktop/marsync.sh >AutoRsyncLogfile.txt The /Desktop part is probably incorrect; the Desktop directory is usually in your home directory (ie, /home/<username>), and can be ...


3

Couldn't you simply run it in the background, inside a while loop: while true do [command] sleep [number of seconds] done So the construction would be: Add a line in /etc/rc.local to call your script (your ShellScript.sh) + "&" to make it exit Run the commands you want the ShellScript.sh to execute in a while loop (inside Shellscript.sh): ...


1

Answered by OP in comments. I was able to use the command amixer in stead of pacmd. Thanks


1

The syntax of anacrontab is, according to the manpage: Job-description lines are of one of these two forms: period delay job-identifier command @period_name delay job-identify command I'd say you are missing a job-identifier. So something like; @daily 5 btsync-job /home/dm/Devel/btsync && notify-send "Btsync loaded (pid ...



Only top voted, non community-wiki answers of a minimum length are eligible