From owner-freebsd-questions Sun Jun 24 13:23:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 1476A37B401 for ; Sun, 24 Jun 2001 13:23:10 -0700 (PDT) (envelope-from wmoran@iowna.com) Received: from iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f5OKJms11319; Sun, 24 Jun 2001 16:19:48 -0400 (EDT) Message-ID: <3B364BFF.35063AF8@iowna.com> Date: Sun, 24 Jun 2001 16:22:23 -0400 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: fybar Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pause in c program References: <3B3637D6.ABDB4B0@powersurfr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG fybar wrote: > > I am a newbie programmer running FreeBSD 3.5.1 on my laptop, I have had > > more success with this version with pcmcia cards. Anyhoo, I am writing > a program that I want to have print out some lines at a certain tempo. > Is > there a function that will let me pause the program for a specified > amount of time? > > I tried sleep, but I got some errors during the compile. Is there a way > > to call UNIX commands from a c program? > > My compiler is gcc 2.7. man 3 sleep -- If a bird in the hand is worth two in the bush, then what can I get for two hands in the bush? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message