Click to See Complete Forum and Search --> : automatic running a C++ executable


tdas
11-02-2005, 01:25 PM
Hi evryone,

I was wd be greondering is it possible to run an executable automatically after a certain time limit. For example i have a simple executable from a C++ program and I want to it to keep on runningn every 10 mins. Is it possible to do so?

Ne help would be greatly appreciated.

Thanks

Tapajyoti

Danny
11-02-2005, 02:27 PM
You need to use a timer that expires every 10 minutes and launches the executable say by calling spawn or exec depending on your platforms. Timers are a platform and API specific issue so you need to use your system's timers.

jonnin
11-02-2005, 02:56 PM
the task manager can be used to arrange this on windows or something called cron??? on unix based systems, if you prefer to let the os do the work.

tdas
11-02-2005, 03:04 PM
Thanks a lot guys...I looked up cron on the man pages and I think it might solve the problem.

Thanks a lot once again

Tapajyoti