delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/02/05:41:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: "cygwin" <cygwin AT cygwin DOT com>
Subject: Problem with cron and cygdrive-prefix
Date: Fri, 2 Aug 2002 11:40:46 +0200
Message-ID: <005601c23a08$ad97a0a0$651c440a@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Sorry, here comes it again.


Hi all

I like to use cron on an winnt server for automatisation purposes and got a
problem with the cygdrive-prefix.

Mount says the following:

$ mount
E:\cygwin\bin on /usr/bin type system (binmode)
E:\cygwin\lib on /usr/lib type system (binmode)
E:\cygwin on / type system (binmode)
c: on /c type user (binmode,noumount)
e: on /e type user (binmode,noumount)
f: on /f type user (binmode,noumount)
g: on /g type user (binmode,noumount)
h: on /h type user (binmode,noumount)
z: on /z type user (binmode,noumount)


Now I've added a cronjob like this (The path is valid)

$ crontab -l
* * * * * ls /g/Sicherungen/ -l

after waiting a minute cron sends a mail with an error message

ls: /g/Sicherungen/: No such file or directory

Looking in the header of the mail shows, what goes wrong.
The cygdrive prefix seems to be ignored in the PATH statement. (see below)

Adding /cygdrive to the crontab works

$ crontab -l
* * * * * ls /cygdrive/g/Sicherungen/ -l

Any idea, what is going wrong ?

Ralf


<snip>
From: "U-DBSERVER1\Administrator" <ralf DOT habacker AT sag-el DOT com>
To: ralf DOT habacker AT sag-el DOT com
Subject: Cron <Administrator AT DBSERVER1> ls /g/Sicherungen/ -l
X-Cron-Env: <COMPUTERNAME=DBSERVER1>
X-Cron-Env: <COMSPEC=C:\WINNT\system32\cmd.exe>
X-Cron-Env: <CYGWIN=tty ntsec>
X-Cron-Env: <MAILTO=ralf DOT habacker AT sag-el DOT com>
X-Cron-Env: <NUMBER_OF_PROCESSORS=2>
X-Cron-Env: <OS2LIBPATH=C:\WINNT\system32\os2\dll;>
X-Cron-Env: <OS=Windows_NT>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
X-Cron-Env:
<PATH=/cygdrive/e/orant/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdri
ve/c/Programme/PERC2/System:/cygdrive/c/PROGRA~1/ULTRAEDT:/bin>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

X-Cron-Env: <PROCESSOR_ARCHITECTURE=x86>
X-Cron-Env: <PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 3, GenuineIntel>
X-Cron-Env: <PROCESSOR_LEVEL=6>
X-Cron-Env: <PROCESSOR_REVISION=0703>
X-Cron-Env: <PWRCHUTE=C:\Programme\Pwrchute>
X-Cron-Env: <SYSTEMDRIVE=C:>
X-Cron-Env: <SYSTEMROOT=C:\WINNT>
X-Cron-Env: <TERM=cygwin>
X-Cron-Env: <WINDIR=C:\WINNT>
X-Cron-Env: <TZ=   -1   -2,M3.5.0/2,M10.5.0/3>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/Administrator>
X-Cron-Env: <LOGNAME=Administrator>
Message-Id: <200208020916734 DOT SM00094 AT ralf DOT habacker>
X-RCPT-TO: <ralf DOT habacker AT mail DOT hq DOT sag-el DOT com>
X-UIDL: 245820428
Status: U


Cygwin Package Information
Package             Version
_update-info-dir    00037-1
ash                 20020131-1
bash                2.05b-1
cron                3.0.1-7
crypt               1.0-1
cvs                 1.11.0-1
cygipc              1.09-2
cygrunsrv           0.95-1
cygutils            1.1.2-1
cygwin              1.3.12-2
diff                1.0-1
diffutils           2.8.1-1
fileutils           4.1-1
findutils           4.1.7-4
gawk                3.0.4-1
gdbm                1.8.0-4
grep                2.5-1
groff               1.17.2-1
gzip                1.3.3-3
less                374-1
libiconv2           1.8-2
libintl             0.10.38-3
libintl1            0.10.40-1
libintl2            0.11.2-2
libncurses5         5.2-1
libncurses6         5.2-8
libpopt0            1.6.4-4
libreadline4        4.1-2
libreadline5        4.3-1
login               1.4-3
man                 1.5g-2
mutt                1.4-1
ncurses             5.2-8
openssl             0.9.6d-1
pcre                3.7-1
popt                1.6.4-4
readline            4.3-1
sed                 3.02-1
sh-utils            2.0-2
sharutils           4.2.1-2
ssmtp               2.38.7-3
tar                 1.13.19-1
termcap             20020403-1
terminfo            5.2-3
texinfo             4.2-3
textutils           2.0.21-1
unzip               5.50-1
vim                 6.1-2
which               1.5-1


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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