<P>
  <BR>
<BR>
<BR>
On Sun, 25 Dec 2005 gb spam wrote :<BR>
> >  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.<BR>
> ><BR>
> >  I tried it using cron but  could not successful . Any idea will be appriciable.<BR>
><BR>
>cron does not have a display associated with it, so your gui app will<BR>
>die.  check root's mail, by default all output (errors in this case)<BR>
> from the job will be mailed to the user.<BR>
><BR>
>you could try the following:<BR>
><BR>
>DISPLAY=:0.0<BR>
><BR>
>in the script, but you'll need to do some xhost stuff for each user<BR>
>that may be logged in on the GUI.<BR>
<BR>
<BR>
OK , I have no idea to write AND COMPILE THE scripting language.<BR>
But  i tried in below fashion at sch.sh file<BR>
<BR>
#!/bin/sh<BR>
sh /root/QT/QTDesigner/scheduler/scheduler<BR>
DISPLAY=:0.0<BR>
<BR>
<BR>
Now i tried to run it by # sc sch.sh  but it says<BR>
<BR>
: cannot execute binary file<BR>
<BR>
<BR>
How to come out this problem<BR>
<BR>
Regards<BR>
SNAV
</P>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG SRC="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0></a>