X-Recipient: archive-cygwin@delorie.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
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4DCB5A2A.2050705@cygwin.com>
Date: Wed, 11 May 2011 23:55:22 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.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@cygwin.com
Subject: Re: Copy to network UNC path from crontab works in non-production, not in production
References: <31599258.post@talk.nabble.com> <4DCB31E4.7020809@cygwin.com> <31599359.post@talk.nabble.com>
In-Reply-To: <31599359.post@talk.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 5/11/2011 9:20 PM, CygwinNoob wrote:
>
> 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.

If you're saying that in the non-Production environment it works both
interactively and from cron and ssh, then I can only assume that something
in the FAQ and User's Guide is in play on that machine.  In general, access
to network resources is restricted for services, which is what crond and
sshd are.  You need to follow the advice in the FAQ and/or User's Guide
(the ones you referenced in your first post) to enable access for crond and
sshd.

-- 
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

