Hi people!
I have done some java program that reads stuff from different webpages and inserts some of the retrieved data into a database. I did the java stuff in eclipse and exported it as an executable jar file.
Which works fine if i go (in terminal) to the directory where the jar file is and write
Code:
java -jar database.jar
I can see that the database is updated with new data.
My problem appears when I try to run it from the crontab. I can't figure out what to write to make it work.
This is what I have wrote in the crontab....
edit the file with...
Code:
*/5 * * * * /home/xxx/CODE/Database/java -jar database.jar
I have tried different alternatives but without making the java code to run...
So, anyone that can help me out with the right crontab statement???
thanks
sueco