From owner-freebsd-questions Sun Mar 5 19:12:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 900ED37BBF6 for ; Sun, 5 Mar 2000 19:12:22 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id WAA67251; Sun, 5 Mar 2000 22:17:18 -0500 (EST) (envelope-from cjc) Date: Sun, 5 Mar 2000 22:17:18 -0500 From: "Crist J. Clark" To: Bhishan Hemrajani Cc: kc5vdj@swbell.net, freebsd-questions@FreeBSD.ORG Subject: Re: run every 10 seconds Message-ID: <20000305221718.J62310@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <200003060121.TAA08866@ppp-207-193-2-190.kscymo.swbell.net> <200003060303.TAA02466@cytosine.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200003060303.TAA02466@cytosine.dhs.org>; from bhishan@cytosine.dhs.org on Sun, Mar 05, 2000 at 07:03:06PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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