You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by anilreddy76 <an...@gmail.com> on 2010/08/12 20:09:17 UTC
Running maven from crontab
I've one shellscript excute.sh which has the maven commands like this
#!/bin/bash
mvn clean package
mvn exec:java
-Dexec.mainClass="com.eportfolio.dart.business.EPenCreateICFCDFFile"
and I'm calling the above script in crontab for every 1 min like this,but
it's not executing.
*/1 * * * * /hosting/pem_rd/DART/DART_ePortfolio_Server/execute.sh >>
/tmp/dart/icfcdf.log
once I just run excute.sh from command line without cron it is fine.
Could any body please advise where I'm going wrong?
Thanks,
Kumar
--
View this message in context: http://maven.40175.n5.nabble.com/Running-maven-from-crontab-tp2473497p2473497.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running maven from crontab
Posted by anilreddy76 <an...@gmail.com>.
Thanks for the reply.Will try it out.
--
View this message in context: http://maven.40175.n5.nabble.com/Running-maven-from-crontab-tp2473497p2624694.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running maven from crontab
Posted by Refr Bruhl <re...@yahoo.com>.
Sounds like a pathing issue.
I'd make it a script and put the command in a variable
COM="mvn exec:java
-Dexec.mainClass=\"com.eportfolio.dart.business.EPenCreateICFCDFFile\" 2>&1"
Note the escape marks and the redirect of stderr
The execute it by:
RES=$( ${COM} )
echo "${RES}
That will give you an idea of what's going wrong. If you don't redirect the
output to a file in the cron entry you should get an e-mail from the account
with the infomation that wil ltell you what's bombing
________________________________
From: anilreddy76 <an...@gmail.com>
To: users@maven.apache.org
Sent: Thu, August 12, 2010 1:09:17 PM
Subject: Running maven from crontab
I've one shellscript excute.sh which has the maven commands like this
#!/bin/bash
mvn clean package
mvn exec:java
-Dexec.mainClass="com.eportfolio.dart.business.EPenCreateICFCDFFile"
and I'm calling the above script in crontab for every 1 min like this,but
it's not executing.
*/1 * * * * /hosting/pem_rd/DART/DART_ePortfolio_Server/execute.sh >>
/tmp/dart/icfcdf.log
once I just run excute.sh from command line without cron it is fine.
Could any body please advise where I'm going wrong?
Thanks,
Kumar
--
View this message in context:
http://maven.40175.n5.nabble.com/Running-maven-from-crontab-tp2473497p2473497.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org