how to schedule my task

Navdeep singh_nav00 at rediffmail.com
Mon Dec 26 06:58:40 UTC 2005


  


On Sun, 25 Dec 2005 gb spam wrote :
> >  I created a GUI application on QT 3.1 on red HAT LINUX. Now i want to run this application automatically just after log in as ROOT. How can i do this . If I want to run my application daily at 4:30 PM then what to do for it.
> >
> >  I tried it using cron but  could not successful . Any idea will be appriciable.
>
>cron does not have a display associated with it, so your gui app will
>die.  check root's mail, by default all output (errors in this case)
> from the job will be mailed to the user.
>
>you could try the following:
>
>DISPLAY=:0.0
>
>in the script, but you'll need to do some xhost stuff for each user
>that may be logged in on the GUI.


OK , I have no idea to write AND COMPILE THE scripting language.
But  i tried in below fashion at sch.sh file

#!/bin/sh
sh /root/QT/QTDesigner/scheduler/scheduler
DISPLAY=:0.0


Now i tried to run it by # sc sch.sh  but it says

: cannot execute binary file


How to come out this problem

Regards
SNAV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051226/f9526ce7/attachment-0001.htm>


More information about the fedora-list mailing list