Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 8th February 2008, 09:14
shoaibahmedbaig shoaibahmedbaig is offline
Junior Member
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to run jar file using cron?

hi guys ,

i want to run jar file using crontab -e
here is the following :

my jar file is in my home directory which is :


I m using IBMJava2-142-ia32-SDK-1.4.2-8.0.i386.rpm which is installed in


now i want to schedule my jar file to run every monday at morning .

here is my cron entry :

30 11 * * * /opt/IBMJava2-142/bin/java -jar /home/shoaib/my.jar

could u please tell me wats wrong with that command and my back-end database sever is IBM DB2 9.0.

this command is run normally but when i schedule it through cron it didn't run, waiting for your response .


Reply With Quote
Sponsored Links
Old 9th February 2008, 19:10
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

Please try to use full paths in /home/shoaib/my.jar. Cron's environment variables are a bit different from what you have on the shell.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 01:09
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29
ISPConfig faiture glt50 Installation/Configuration 16 6th July 2006 02:58
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 16:35

All times are GMT +2. The time now is 01:03.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.