HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Cron and Crontab
On Wednesday 21 September 2005 15:51, you wrote:
> Also there seems to be two conflicting commands in the setup docs for
> faxcron
>
> 25 23 * * * sh /usr/local/sbin/faxcron | mail FaxMaster
>
> 0 0 * * * /usr/local/sbin/faxcron | mail -s "HylaFAX Usage Report"
> faxmaster
>
> Which one is the correct one to use?
The upper line will send a message with no subject, containing the output of
the command "sh /usr/local/sbin/faxcron" to FaxMaster at 23:25 every day.
The lower line will send a message with the subject "HylaFAX Usage Report",
containing the output of the command "/usr/local/sbin/faxcron", to faxmaster
at midnight every day.
The general format of a crontab entry is:
minute hour day_of_month month day_of_week command
minute = 0..59
hour = 0..23 or *
day_of_month = 0..31 or *
month = 1 [= january] ..12 [=december] or *
day_of_week = 0 [=sunday] ..6 [=saturday] or *
command = any command
(You probably don't want to specify both a day of month AND a day of week.
Depending on implementation -- BSD, Linux, a different Linux distribution or
Solaris -- the following line
0 0 28 * 4 /usr/local/bin/foo
might work just if the 28th is a Wednesday; or it might work every Wednesday
and on the 28th of every month. Try it and see which your system uses.)
It's also possible to use terms like "17, 32, 47, 52"; "4-6" meaning 4, 5 or
6; or "0-59/10" meaning 0, 10, 20, 30, 40 or 50 (it doesn't matter that it
won't reach 59 exactly). In general, it's a bad idea to do things dead on
the turn of the hour, since that's when everyone else will be doing things.
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*