D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

RE: [LUG] apache perl cgi question



Title: RE: [LUG] apache perl cgi question

Dave,

I meant to give you an awk example  (will print the first 10 lines):

#!/bin/awk -f
BEGIN {
   for (i = 0; i < 10; i++)
   {
      if ( ("ntpdc -n -c mon | sort -nrk4" | getline) <= 0 )
             break
      print
   }
   close ("ntpdc -n -c mon | sort -nrk4")
}


Clive


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Lynx friendly