This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: help cron cygwin
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Sat, 07 Jan 2006 14:14:51 -0600
- Subject: Re: help cron cygwin
- Openpgp: url=ldap://keyserver.pgp.com
- References: <004601c61338$2d332260$ac01a8c0@tanhauser>
Christian Lanconelli (servizio) wrote:
[snip]
> $ crontab -l
> 40 * * * * trasf_DOS.exe;echo "tab eseguito alle
> $(date)">/home/Administrator/cronlog
>
> The file "cronlog" is regularly updated. But trasf_DOS appears not work!
>
> Can you help me? What's my error?
Probably the global PATH is the problem.
You can define your crontab as this:
# use /bin/bash to run commands, no matter what /etc/passwd says
SHELL=/bin/bash
# make sure to use this PATH
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/VXIPNP/WinNT/Bin:/cygdrive/c/cvi/icaro/dati
40 * * * * trasf_DOS.exe;echo "tab eseguito alle
$(date)">/home/Administrator/cronlog
It's all explained in "man 5 crontab".
HTH
--
René Berber
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/