You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mike Lecza <ml...@newnetco.com> on 2002/04/10 16:05:05 UTC

Ant from Cron problem

This may be more of a cron issue than an Ant issue – but sure many of
you have done this.  Perhaps you can help.
 
I setup cron that calls a script that looks something like this:
 
#!/bin/sh
 
echo !!!!
echo $ANT_HOME
$ANT_HOME/bin/ant -logfile /export/programs/backups/antoutput -buildfile
/export/programs/backups/build-backups.xml 
echo !!!!
 
In the crontab I have:
31 * * * * root  /export/programs/backups/backup.sh
>>/export/programs/backups/cronoutput
 
The buildfile simply does some echos and creates a directory.
When I run the script from the cmd line it runs just fine (creating the
output file and the directory).  When cron runs the script the antoutput
fille is not even created and the directory is not either.  It is almost
as if the ant command is ignored.  Here is the contents of cronoutput
after cron runs the script
 
Any Ideas?
 
Regards