|
NAMEfcrontab - manipulate per-user fcrontab filesSYNOPSISfcrontab [ -c file ] [ -n ] file [ user | -u user ]fcrontab [ -c file ] [ -n ] { -l | -r | -e | -z } [ user | -u user ] fcrontab [ -h ] DESCRIPTIONFcrontab is the program intended to install, edit, list and remove the tables used by fcron(8) daemon. As fcron internally uses a non-human readable format (this is needed because fcron saves more informations than the user gives, for example the time and date of next execution), the user cannot edit directly his fcrontab (the one used by fcron).When a user installs a fcrontab, the source file is saved in the spool directory (/var/spool/fcron) to allow future editions, and a formatted file is generated for the fcron daemon, which is signaled once about ten seconds before the next minute for all changes made previously. The daemon is not informed of the changes immediately but at most once a minute to keep ill disposed users from blocking the daemon by installing fcrontabs over and over (ie. denial of service attack). We will call "fcrontab" the source file of the fcrontab in the following. A user can install a fcrontab if he is listed in the /usr/local/etc/fcron.allow and not (unless by the keyword all) listed in /usr/local/etc/fcron.deny (see section "files" below). If neither fcron.allow nor fcron.deny exist, all users are allowed. None of these files have to exist, but if they do, the deny file takes precedence. The first form of the command is used to install a new fcrontab file, from any named file or from standard input if the pseudo-filename "-" is given, replacing the previous one (if any): each user can have only one fcrontab. For instance, root can create a systemwide fcrontab file, say /etc/fcrontab, and run "fcrontab /etc/fcrontab" to install the new version after each change of the file. Or (s)he can create a new fcrontab running a simple "fcrontab", and then maintain it using "fcrontab -e". Same considerations apply to a non privileged user. OPTIONS
Note: the 'user' in the synopsys is
equivalent to a '-u user'.
RETURN VALUESFcrontab returns 0 on normal exit and 1 on error.CONFORMING TOShould be POSIX compliant.FILES
SEE ALSOfcrontab(1),fcrondyn(1), fcrontab(5), fcron.conf(5), fcron(8). If you're learning how to use fcron from scratch, I suggest that you read the HTML version of the documentation (if your are not reading it right now! :) ): the content is the same, but it is easier to navigate thanks to the hyperlinks. AUTHORThibault Godouet <fcron@free.fr>
Visit the GSP FreeBSD Man Page Interface. |