View Single Post
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#3
Originally Posted by madmaze View Post
Hello Everyone,

I have some backup scripts I want fcron to run for me.
i have fcron working for commands, but I cannot execute scripts for some reason.

fcrontab -e

15 10 * * * touch /home/user/test
16 10 * * * echo "herro" > /home/user/test_2
17 10 * * * /home/user/test_script
18 10 * * * /opt/test_script


so the first 2 lines work and are fine, but the last 2 dont run.
both scripts have +x permission and work if i execute them manually.

Any Ideas why this may be happening?


Thanks,

Maze
I found that this fcron and the cron in the repository behave strangely lately. So I used alarmed instead. It has a nice GUI, and it uses the system schedule engine alarmd so it isn't required to run an extra scheduler.

If you still have to stick to fcron/cron, you may put run-standalone.sh in front of the command like this:

Code:
17 10 * * * run-standalone.sh /home/user/test_script > /dev/null 2>&1
18 10 * * * run-standalone.sh /opt/test_script > /dev/null 2>&1