On Tue, Jan 11, 2011 at 9:30 PM, Guruprasad <[email protected]> wrote:
> Hi, > > On Tue, Jan 11, 2011 at 9:11 PM, JAGANADH G <[email protected]> wrote: > > #!/usr/bin/bash > > export JAVA_HOME=/usr/java/jdk1.6.0_22 > > cd /home/jaganadhg/schedules > > java -jar ScheduledCrawler.jar > > > > I tried the 'Schedule Tasks' gui program too. When I manually execute the > > job from Schedule tasks GUI it is working . > > > > Is there anything wrong in the set-up > > Hi if that is a GUI application, you need to tell the crontab to run > it in X by using a directive like 'export DISPLAY:=0' (0 is the > default display, use different numbers if you have more than one > display). > > You can use a post like this for reference - > > http://guerrillatech.wordpress.com/2008/01/25/howto-use-cron-to-schedule-tasks/ > This one worked . Because the java program opens a browser window while it executes Thanks -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
