.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "FCRONTAB" "5" "05 December 2021" "12/05/2021" "" .SH NAME fcrontab \- tables for driving fcron .SH "DESCRIPTION" .PP A \fBfcrontab\fR is a file containing all tables used by the \fBfcron\fR(8) daemon. In other words, it is the means for a user to tell the daemon "execute this command at this moment". Each user has their own \fBfcrontab\fR, whose commands are executed as their owner (only root can run a job as another using the option runas (see below)). .PP Blank lines, line beginning by a hash sign (#) (which are considered comments), leading blanks and tabs are ignored. Each line in a fcrontab file can be either .TP 0.2i \(bu an environment setting, .TP 0.2i \(bu an option setting, .TP 0.2i \(bu entries based on elapsed system up time, .TP 0.2i \(bu entries based on absolute time (like normal crontab entries), or .TP 0.2i \(bu entries run periodically. .PP Any logical line (an entry or an assignment) can be divided into several real lines (the lines which end by a newline character) by placing a backslash (\\) before the newline character (\\n). .SS "THE ENVIRONMENT SETTINGS" .PP The environment settings are of the form .sp .RS .PP name = value .RE .PP where the blanks around equal-sign (=) are ignored and optional. Trailing blanks are also ignored, but you can place the value in quotes (simple or double, but matching) to preserve any blanks in the value. .PP When \fBfcron\fR executes a command, it always sets \fBUSER\fR, and \fBHOME\fR as defined in \fI/etc/passwd\fR for the owner of the \fBfcrontab\fR from which the command is extracted. TZ is also defined to the value of the option timezone when this option is used. It also defines \fBSHELL\fR to the value of the SHELL used to run the command. \fBFcron\fR uses the value of \fBSHELL\fR from the fcrontab if any, otherwise it uses the value from \fIfcron.conf\fR if any, or in last resort the value from \fI/etc/passwd\fR\&. \fBHOME\fR and \fBSHELL\fR may be overridden by settings in the \fBfcrontab\fR, but \fBUSER\fR may not. Every other environment assignments defined in the user \fBfcrontab\fR are then made, and the command is executed. .PP By default, fcron will send emails using the email "Content-Type:" header of "text/plain" with the "charset=" parameter set to the charmap / codeset of the locale in which \fBfcron\fR(8) is started up - i.e. either the default system locale, if no LC_* environment variables are set, or the locale specified by the LC_* environment variables (see locale(7)). You can use different character encodings for emailed fcron job output by setting the CONTENT_TYPE and CONTENT_TRANSFER_ENCODING variables in fcrontabs, to the correct values of the mail headers of those names. .PP Additionally, the special variables MAILFROM and MAILTO allow you to tell \fBfcron\fR from/to whom it should email the command's output. Note that these are in fact equivalent to global declarations of the options mailfrom and mailto (see below). They are used for backward compatibility, and it is recommended that you use the options mailfrom and mailto directly instead. .SS "ENTRIES BASED ON ELAPSED SYSTEM UP TIME" .PP Jobs are scheduled to run once every m minutes of \fBfcron\fR\&'s execution (which is normally the same as m minutes of system's execution). The time a system is suspended (to memory or disk) is considered as down time. To configure such a job, use configuration lines of the form: .nf @options frequency command .fi .PP where frequency is a time value of the form value*multiplier+value*multiplier+...+value-in-minutes as "12h02" or "3w2d5h1". The first means "12 hours and 2 minutes of fcron execution" while the second means "3 weeks, 2 days, 5 hours and 1 minute of fcron execution". The only valid multipliers are: "VALID TIME MULTIPLIERS" meaning: multipliers: months (4 weeks): m weeks (7 days): w days (24 hours): d hours (60 minutes): h seconds: s .PP In place of \fIoptions\fR, user can put a time value: it will be interpreted as @first(\fI