X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,TW_IW,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <31599359.post@talk.nabble.com> Date: Wed, 11 May 2011 18:20:46 -0700 (PDT) From: CygwinNoob To: cygwin AT cygwin DOT com Subject: Re: Copy to network UNC path from crontab works in non-production, not in production In-Reply-To: <4DCB31E4.7020809@cygwin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <31599258 DOT post AT talk DOT nabble DOT com> <4DCB31E4 DOT 7020809 AT cygwin DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Thanks for responding so quickly! I will try using the forward slashes in Production. It may take a few days because I don't have direct access to the Production environment and I have to go through sort of remote hands. The source server queries Oracle databases through shell scripts running in a Cygwin bash shell and sends the output files to the target server which is running SQL Server. No problem doing that interactively in Production, but I can't do it from ssh or cron in Production and I can do it in the non-Production environment. I cannot see any differences between the two environments. Larry Hall (Cygwin) wrote: > > 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 > > > -- View this message in context: http://old.nabble.com/Copy-to-network-UNC-path-from-crontab-works-in-non-production%2C-not-in-production-tp31599258p31599359.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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