delorie.com/archives/browse.cgi | search |
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 |
Reply-To: | Cygwin List <cygwin AT cygwin DOT com> |
Message-Id: | <6.2.0.14.0.20050303114056.0339ce28@pop.prospeed.net> |
Date: | Thu, 03 Mar 2005 11:43:17 -0500 |
To: | Paul Hodor <p_hodor AT yahoo DOT com>, cygwin AT cygwin DOT com |
From: | Larry Hall <lh-no-personal-replies-please AT cygwin DOT com> |
Subject: | Re: cron copy on network drives |
In-Reply-To: | <20050303161336.95612.qmail@web21202.mail.yahoo.com> |
References: | <20050303161336 DOT 95612 DOT qmail AT web21202 DOT mail DOT yahoo DOT com> |
Mime-Version: | 1.0 |
At 11:13 AM 3/3/2005, you wrote: >Hi, > >I am trying to set up a cron service to update some directories on a >network drive, but I ran into a problem. > >This copy command works from the command-line: >cp -a -u -v //mydrive/myshare/dir1/* //mydrive/myshare/dir2 >> log 2>&1 > >However, if I run it with cron I get the following error: >cp: cannot stat `//mydrive/myshare/dir1/*': No such file or directory > >Do I need to use a different syntax for the path or am I doing >something else wrong? I am running Windows XP Professional version 2002 >SP1 and cygwin DLL version 1.5.12. Read: Why don't my services work (or access network shares)? <http://cygwin.com/faq/faq_toc.html#TOC33> Most likely you're trying to access a network share when cron doesn't have access to it. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |