Crontab básico no funciona
Frecuentes
Visto 563 veces
0
I'm trying to create a sample cron job.
First I've edited crontab using:
crontab -e
Then I've added this line in order to create a test folder in my home every minute:
1 * * * * mkdir -p /home/<myusername>/foo/
Then I've made sure that cron was running:
root 913 1 0 Aug22 ? 00:00:00 cron
However if I try to restart it for example (or stop it):
restart cron
Aparece el siguiente mensaje de error:
restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.73" (uid=1000 pid=17887 comm="restart cron ") interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
Also the test folder it's not created.
1 Respuestas
1
This cronjob is executed once an hour. The first field is minutes. Try putting a star in there.
Respondido 24 ago 12, 08:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas cron crontab cron-task or haz tu propia pregunta.