Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Ralf Habacker" To: "cygwin" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 From: "U-DBSERVER1\Administrator" To: ralf DOT habacker AT sag-el DOT com Subject: Cron ls /g/Sicherungen/ -l X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! X-Cron-Env: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: Message-Id: <200208020916734 DOT SM00094 AT ralf DOT habacker> X-RCPT-TO: 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/