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
--------------------------------------------------------------------------------------------


-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to