Sim, eu tenho essas linhas...
On 5/2/06, Patrick Tracanelli <[EMAIL PROTECTED]> wrote: > asakusa asa wrote: > > 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.... > > Troque echo por /bin/echo > > Ou defina os PATHS no inicia da crontab: > > SHELL=/bin/sh > PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin > HOME=/var/log > > Ou no proprio script > > PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin > export PATH > > > > -- > Patrick Tracanelli > > FreeBSD Brasil LTDA. > (31) 3281-9633 / 3281-3547 > [EMAIL PROTECTED] > http://www.freebsdbrasil.com.br > "Long live Hanin Elias, Kim Deal!" > > _______________________________________________ > freebsd mailing list > [email protected] > https://www.fug.com.br/mailman/listinfo/freebsd > _______________________________________________ freebsd mailing list [email protected] https://www.fug.com.br/mailman/listinfo/freebsd

