Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fcron problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 265
Location: Warsaw, Poland

PostPosted: Thu Apr 11, 2013 6:07 pm    Post subject: fcron problems Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Apr 12, 2013 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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