ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blackwater dev <blackwater...@gmail.com>
Subject Re: cvs task failing from cron
Date Thu, 07 Jul 2005 13:33:43 GMT
So cvs should be in my path env variable?  How do I check that?

echo $PATH?

On 7/7/05, Shatzer, Larry <Larry.Shatzer@mirotechnologies.com> wrote:
> Make sure your script for cron sets up your path so cvs is in your path.
> Cronjobs run in a minimal environment.
> 
> -- Larry
> 
> > -----Original Message-----
> > From: blackwater dev [mailto:blackwaterdev@gmail.com]
> > Sent: Thursday, July 07, 2005 5:48 AM
> > To: Ant Users List
> > Subject: cvs task failing from cron
> >
> >
> > I have a cvs task that uses ssh authentication to checkout:
> >
> > <cvs cvsRoot="me@192.168.0.64:/usr/local/cvs"
> >        cvsRsh="ssh"
> >          package="cars"
> >        dest="/httpd/htdocs"
> > />
> >
> > After asking a question yesterday about storing my ssh password, I set
> > up an ssh key and now when I ssh into the box, I can run the build
> > script and everything runs fine and it doesn't ask for my password.
> > The problem is, I need to run the same build script from a cron job.
> > I know the cron job is running as other tasks are executed but for
> > some reason when the cvs task is run from the cron, I get this error:
> >
> > checkout:
> > [cvs] Caught exception: No such file or directory
> >
> > Here's the cron:
> > 10 30 * * * /usr/bin/ant -buildfile /home/me/build.xml
> > -logfile /home/me/log.txt
> >
> > Why won't this script run from a cron?
> >
> > Thanks!
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message