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:[EMAIL PROTECTED] > 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="[EMAIL PROTECTED]:/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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]