Date: Sun, 05 Mar 2000 19:21:18 -0600 (CST) From: Jim Bryant <jbryant@ppp-207-193-2-190.kscymo.swbell.net> To: bhishan@cytosine.dhs.org (Bhishan Hemrajani) Cc: freebsd-questions@freebsd.org Subject: Re: run every 10 seconds Message-ID: <200003060121.TAA08866@ppp-207-193-2-190.kscymo.swbell.net> In-Reply-To: <200003052349.PAA01127@cytosine.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In reply: > I was wondering if you could schedule a program to run > every 10 seconds. I tried to do this with cron, but as > far as I know, you can only have it run once a minute. > > Please help. maybe something like this? int main(void) { . . . while(1) { if (!fork()) return(exec("whatever")); sleep(10); } } -- All opinions expressed are mine, if you | "I will not be pushed, stamped, think otherwise, then go jump into turbid | briefed, debriefed, indexed, or radioactive waters and yell WAHOO !!! | numbered!" - #1, "The Prisoner" ------------------------------------------------------------------------------ KC5VDJ - HF to 23cm KC5VDJ@NW0I.#NEKS.KS.USA.NOAM kc5vdj@swbell.net IC-706MkII, IC-T81A, HTX-202, HTX-212, HTX-404, KPC3+, PK-232MBX Grid: EM28px ------------------------------------------------------------------------------ ET has one helluva sense of humor, always anal-probing right-wing schizos! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003060121.TAA08866>