X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: help cron cygwin Date: Sat, 07 Jan 2006 14:14:51 -0600 Lines: 29 Message-ID: References: <004601c61338$2d332260$ac01a8c0 AT tanhauser> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) In-Reply-To: <004601c61338$2d332260$ac01a8c0@tanhauser> OpenPGP: url=ldap://keyserver.pgp.com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Christian Lanconelli (servizio) wrote: [snip] > $ crontab -l > 40 * * * * trasf_DOS.exe;echo "tab eseguito alle > $(date)">/home/Administrator/cronlog >=20 > The file "cronlog" is regularly updated. But trasf_DOS appears not work! >=20 > 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=3D/bin/bash # make sure to use this PATH PATH=3D/usr/local/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/c= ygdrive/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 --=20 Ren=E9 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/