Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
$ crontab -r

All of the above commands affects only the crontab for the user you are logged in as. That is, if you are logged in as myuser, you would only affect the crontab of myuser. If you are logged in as a privileged user (such as root), you can affect other users using the -u option. For example, the following command would edit the crontab for Todos los comandos anteriores afectan solo al crontab del usuario con el que inició sesión. Es decir, si ha iniciado sesión como myuser, solo afectaría al crontab de myuser. Si ha iniciado sesión como usuario privilegiado (como root), puede afectar a otros usuarios utilizando la opción -u . Por ejemplo, el siguiente comando editaría el crontab para myuser:


Code Block
languagetext
$ crontab -u myuser -e

The -u can be supplied with any of the other options used aboveLa opción -u se puede proporcionar con cualquiera de las otras opciones utilizadas anteriormente.

Syntax

A crontab file tells the Cron daemon what commands to run, and when to run them. It has three different kinds of lines: cron command, environment setting, and comment. Blank lines, leading spaces, and tabs are ignored.

...

Un archivo crontab le dice al Cron daemon qué comandos ejecutar y cuándo ejecutarlos. Tiene tres tipos diferentes de líneas: comando cron (cron command), configuracion del entorno (environment setting), y comentario (comment). Se ignoran las líneas en blanco, los espacios iniciales y las tabulaciones.

Comentarios

Any line whose first non-whitespace character is a pound-sign (#) will be considered a comment. Inline comments are not allowed. Comments are not processed by the Cron daemon.

...