PDA

View Full Version : [ubuntu] How to schedule a java program in cron



mister_p_1998
September 7th, 2008, 02:26 PM
Hi guys,
Im trying to get TED (The torrent search tool) to start in cron. Its a java program which runs from the commandline like this: java -jar /home/steve/Ted/ted.jar

Im trying to schedule it it cron with this entry:
# Ted
00 02 * * 1,2,3,4,5 export DISPLAY=:0 && /usr/bin/java -jar /home/steve/Ted/ted.jar

But nothing goes off, is it a java problem?
TIA
Steve