On Mon, 10 Dec 2001, Christo Rademeyer wrote:

> if I use the system call like this
> system ("ping localhost > pinginfo");
> But in linux this will keep on going how can I set up a time on that ?

Use the -n option to give it a set number of times it pings:

system("ping -n 20 localhsot > pinginfo");

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
Hope not, lest ye be disappointed.
                -- M. Horner


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to