Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2000 22:17:18 -0500
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Bhishan Hemrajani <bhishan@cytosine.dhs.org>
Cc:        kc5vdj@swbell.net, freebsd-questions@FreeBSD.ORG
Subject:   Re: run every 10 seconds
Message-ID:  <20000305221718.J62310@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <200003060303.TAA02466@cytosine.dhs.org>; from bhishan@cytosine.dhs.org on Sun, Mar 05, 2000 at 07:03:06PM -0800
References:  <200003060121.TAA08866@ppp-207-193-2-190.kscymo.swbell.net> <200003060303.TAA02466@cytosine.dhs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
a shell script,

#!/bin/sh

while :; do
  command
  sleep 10
done

-- 
Crist J. Clark                           cjclark@home.com


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?20000305221718.J62310>