cron

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Wed Aug 24 16:58:00 GMT 2011


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.

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

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



More information about the Cygwin mailing list