delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/16/17:31:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <414A0635.20407@bufera.org>
Date: Thu, 16 Sep 2004 16:31:33 -0500
From: Andrea M <andrea DOT m AT bufera DOT org>
User-Agent: Mozilla Thunderbird false StumbleUpon/1.77 (Windows/20040707)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: cron and copying files across drives: how?
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at socsci.umn.edu
X-IsSubscribed: yes

I am having a problem running a simple bash script with cron. The script 
executes and behaves as expected when run from the command line, but 
when run by cron, it fails to execute some commands.

I narrowed the problem down and found out that cron fails to copy files 
between drives; for example, the following does not work

* * * * * cp /cygdrive/c/Andrea/try.png /cygdrive/z/try.png

I should mention that the z drive is a network drive. And yes, a simple 
script containing that command does execute correctly from the prompt.

Thanks in advance

--
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