delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/07/15:15:24

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: help cron cygwin
Date: Sat, 07 Jan 2006 14:14:51 -0600
Lines: 29
Message-ID: <dpp7fr$7pu$1@sea.gmane.org>
References: <004601c61338$2d332260$ac01a8c0 AT tanhauser>
Mime-Version: 1.0
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
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019