On Mon, 10 Dec 2001, Brett W. McCoy 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");
Oops, sorry, wrong version of ping. Use the -c option. -n gives numeric output. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ You now have Asian Flu. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]