On Jan 19, 2012 3:00 PM, "Narendra Sisodiya" <[email protected]> wrote: > > > > On Thu, Jan 19, 2012 at 2:38 PM, Narendra Sisodiya < [email protected]> wrote: >> >> >>> $crontab -e >>> Use editor to set following cronjob >>> >>> 0,30 * * * * /home/narendra/Launch.sh >> >> >> >> Unable to execute it as cron is not behaving properly!! If any one get success, let me know !! > > > > Finally, its working, with few corrections !! > CronTab > > 0,30 * * * * env DISPLAY=:0 /home/narendra/Launch.sh > > > Step3 - --- > > > touch ~/Launch.sh > chmod +x ~/Launch.sh > gedit ~/Launch.sh > ---------------Copy Paste Following ----- > #!/bin/bash > FileName="/home/narendra/eye/eye-exercises-to-improve-vision.jpg" > > eog -f $FileName > > exit 0
I dont think it's distro-independent. You should launch it using gnome/kde autostart and use bash while loop combined with sleep command to execute the loop in a timed manner. See this http://linuxboxadmin.esohosting.sk/articles/tools-and-utilities/a-bourne-again-daemon.html -- Nilesh Govindrajan http://nileshgr.com -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
