View previous topic :: View next topic |
Author |
Message |
paluszak Apprentice
Joined: 28 Jun 2004 Posts: 265 Location: Warsaw, Poland
|
Posted: Thu Apr 11, 2013 6:07 pm Post subject: fcron problems |
|
|
Hello,
I've got the following problem. A job should be run not more often than every 24 hrs on a system that is not continuously on. fcron seemed to be perfect for that, so I installed it and put the following line in /etc/fcron/fcrontab:
Code: | @nice(19),mail(false),first(5) 1d /root/blah-blah.sh |
(the script is executable and runs ok when invoked from command line).
As I understand option first() should tell fcron how many minutes after starting the demon a specific job should be launched. My intention is that it should be launched almost immediately after the system starts if more than 24 hrs elapsed from the last time it was run. However, it is not the case because fcron schedules it at some strange hours. My question is, what did I do wrong? Anybody with some more fcron experience over there?
J. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Apr 12, 2013 10:46 am Post subject: |
|
|
paluszak ...
I think its the ordering, please try:
Code: | @first(5),nice(19),mail(no) 1d /root/blah-blah.sh |
HTH & best ... khay |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|