This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cron and copying files across drives: how?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]