Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Mar 2000 23:05:31 -0600 (CST)
From:      Jim Bryant <jbryant@ppp-207-193-3-107.kscymo.swbell.net>
To:        cjclark@home.com
Cc:        bhishan@cytosine.dhs.org, kc5vdj@swbell.net, freebsd-questions@FreeBSD.ORG
Subject:   Re: run every 10 seconds
Message-ID:  <200003060505.XAA09286@ppp-207-193-3-107.kscymo.swbell.net>
In-Reply-To: <20000305221718.J62310@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In reply:
> On Sun, Mar 05, 2000 at 07:03:06PM -0800, Bhishan Hemrajani wrote:
> > I get an error when trying to compile that.
> > I don't know C at all... so if this is a stupid thing on my
> > part, I apologize.
> > 
> > This is the error:
> > /var/tmp/ccpD24411.o: In function `main':
> > /var/tmp/ccpD24411.o(.text+0x22): undefined reference to `exec'
> 
> No such function. man 3 exec. Anyway, you're probably better off with

correct, i just told him to refer to the manpage for exec and pick the
proper one, i did the 'pseudocode' as exec() for clarity.

> a shell script,
>
> #!/bin/sh
> 
> while :; do
>   command
>   sleep 10
> done

either way should work, C or shell.

jim
-- 
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?200003060505.XAA09286>