Re: Re: how to schedule my task

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-12-26 at 06:58 +0000, Navdeep wrote:
>   
> 
> 
> 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
> 
chmod +x <file> ?
> 
> 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux