From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31956 invoked by alias); 28 Aug 2011 10:50:24 -0000 Received: (qmail 31942 invoked by uid 22791); 28 Aug 2011 10:50:23 -0000 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 Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Aug 2011 10:50:07 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QxcwI-0005Dt-3p for cygwin@cygwin.com; Sun, 28 Aug 2011 12:50:06 +0200 Received: from bgepxyout-06.asiapac.hp.net ([15.219.201.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Aug 2011 12:50:06 +0200 Received: from mramakishore by bgepxyout-06.asiapac.hp.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Aug 2011 12:50:06 +0200 To: cygwin@cygwin.com From: kishore Subject: Re: cron Date: Sun, 28 Aug 2011 10:50:00 -0000 Message-ID: References: <4E552D8A.5060002@cygwin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-08/txt/msg00499.txt.bz2 Larry Hall (Cygwin cygwin.com> writes: > > On 8/24/2011 12:08 PM, mramakishore 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. > > > > > 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 > > 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