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.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th February 2008, 08: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 :

/home/shoaib/my.jar

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

/opt/IBMJava2-142

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 .

Regards,

Shoaib
Reply With Quote
Sponsored Links
  #2  
Old 9th February 2008, 18:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

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.
__________________
Falko
--
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
Reply

Bookmarks

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 03:40
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
ISPConfig faiture glt50 Installation/Configuration 16 6th July 2006 01:58
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 15:35


All times are GMT +2. The time now is 10:26.


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