delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/28/06:50:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD,SPF_HELO_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: kishore <mramakishore AT gmail DOT com>
Subject: Re: cron
Date: Thu, 25 Aug 2011 10:27:50 +0000 (UTC)
Lines: 36
Message-ID: <loom.20110825T122142-651@post.gmane.org>
References: <CAFGmhWjcQ4sknOgpy7GZ=KqOb+eLFTzTZ6AWvtp95zrkPm+N3g AT mail DOT gmail DOT com> <4E552D8A DOT 5060002 AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
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

Larry Hall (Cygwin <reply-to-list-only-lh <at> cygwin.com> writes:

> 
> On 8/24/2011 12:08 PM, mramakishore <at> gmail.com wrote:
> > HI,
> > I am sucessed to run the Perl script which uses Net::SSH::Expect
> > package from the cygwin command prompt. but i am scheduled the same
> > script through crontab but script is breaking in middle.
> 
> <snip>
> 
> > can you help me as early as possible..
> 
> First, have you ensured that you set up the same environment for your
> script when run by 'crond' as you have with the interactive shell?
> This is a common problem for users of Cron and is not Cygwin-specific.
> I would suggest pursuing this first if you have not already verified
> that this is not the problem.
> 
> Second, if you're accessing any network shares, this won't work by
> default.  See <http://cygwin.com/faq-nochunks.html#faq.using.shares>
> 
> Third, you have both MSYS and Cygwin in your path.  You should make sure
> that only Cygwin is in the path that 'crond' sees and uses.  I'd say the
> same about Perl.
> 


Hi,

   How can i setup the interactive shell environment when i am running the 
same throught the cron.
i done with PATH=/usr/bin:/usr/sbin:. in cron file other then that what i have 
to do.




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019