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 X-BigFish: VP Date: Thu, 16 Sep 2004 15:39:12 -0600 From: Isaac Foraker Subject: Re: cron and copying files across drives: how? In-reply-to: <414A0635.20407@bufera.org> To: cygwin AT cygwin DOT com Message-id: <414A0800.1010508@xilinx.com> Organization: Xilinx, Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) References: <414A0635 DOT 20407 AT bufera DOT org> X-IsSubscribed: yes You need to "net use" the network drive before you can access it through cron. IF Andrea M wrote: > 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/