This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: problem with cron and network shares
- To: "Cioffari, Joseph" <Joseph dot Cioffari at aig dot com>, "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Subject: Re: problem with cron and network shares
- From: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- Date: Thu, 23 Aug 2001 12:08:25 -0400
At 12:00 PM 8/23/2001, Cioffari, Joseph wrote:
>Hi,
>
>I am currently able to execute the following command at the command line in
>cygwin with no problem:
>
>$cp /home/Administrator/test.doc J:/docs/sfrank (Copies the file from my
>local cygwin home directory to a mapped network share)
>
>However, when I put this (or any cp/ftp/mv command that involves a network
>share) in my crontab it spits back an error saying "Permission Denied" when
>trying to copy the file over to the mapped network share. It seems that
>cron will only copy files to my local machine directories but not network
>shares.
>
>Just wondering why it works if I manually perform the operation but doesn't
>work ("Permission Denied") when I run it through cron. I've also tried
>removing the file first just to make sure it wasn't copying over itself.
>
>Any ideas?
Does the user that cron run as have access to these shares?
Possible (easy) solution: Use UNC paths instead.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
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/