Criei um script para testar o crontab, contudo tenho alguns problemas

O script chama-se test.sh

#!/bin/sh

echo "cron test" >> test.txt


no crontab tenho a seguinte linha
*/5  *  *  *  *  root  /root/test.sh > /dev/null


fiz crontab -r

depois crontab /etc/crontab

reiniciei o cron

/etc/rc.d/cron start

contudo o script nao funciona....


O file test.txt nunca é alterado

-rwx------ 1 root wheel 44 May 2 20:43 test.sh
-rwx------ 1 root wheel 0 May 2 21:03 test.txt


Pq não funciona?

Se fizer crontab -l ele lista tudo direito....
_______________________________________________
freebsd mailing list
freebsd@fug.com.br
https://www.fug.com.br/mailman/listinfo/freebsd

Reply via email to