| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,TW_IW |
| X-Spam-Check-By: | sourceware.org |
| X-Yahoo-SMTP: | Uu383n6swBCEN1G9up0WSnxbvN8fCPmk |
| Message-ID: | <4DCB31E4.7020809@cygwin.com> |
| Date: | Wed, 11 May 2011 21:03:32 -0400 |
| From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
| Reply-To: | cygwin AT cygwin DOT com |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.10 ThunderBrowse/3.3.5 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Copy to network UNC path from crontab works in non-production, not in production |
| References: | <31599258 DOT post AT talk DOT nabble DOT com> |
| In-Reply-To: | <31599258.post@talk.nabble.com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| 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 |
On 5/11/2011 8:50 PM, CygwinNoob wrote: > > cygwin 1.7.7-1 > Windows 2008 64-bit > > I have a script that I am trying to run from cron that copies a local file > on a Windows 2008 server to a UNC path on another Windows 2008 server. It > works fine in a non-Production environment, but not in Production and I > can't figure out why. Yes, I've dutifully searched the forum and looked at > > http://cygwin.com/faq/faq-nochunks.html#faq.using.shares > http://cygwin.com/cygwin-ug-net/ntsec.html > > The answer is not popping out at me. What I'm doing is basically this: > > cp a.a \\\\server-name\\sharename > > What I get in Production is: > > cp: cannot create regular file `//server-name/sharename': File exists So what's the difference between your "Production" and "non-Production" environments? What exactly are you doing in both environments? FWIW, you're better off using forward-slashes for pathnames in Cygiwn (i.e. //server-name/sharename). -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |