From owner-freebsd-questions Sun Jun 24 12: 0:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from crack-ext.ab.videon.ca (crack-ext.ab.videon.ca [206.75.216.33]) by hub.freebsd.org (Postfix) with SMTP id A29BE37B401 for ; Sun, 24 Jun 2001 12:00:47 -0700 (PDT) (envelope-from fybar@powersurfr.com) Received: (qmail 10746 invoked from network); 24 Jun 2001 19:00:45 -0000 Received: from unknown (HELO powersurfr.com) ([24.108.48.33]) (envelope-sender ) by crack-ext.ab.videon.ca (qmail-ldap-1.03) with SMTP for ; 24 Jun 2001 19:00:45 -0000 Message-ID: <3B3637D6.ABDB4B0@powersurfr.com> Date: Sun, 24 Jun 2001 12:56:23 -0600 From: fybar X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 3.5.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: pause in c program 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 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. -- fybar@nospam.powersurfr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message