ping host | perl -nle 'BEGIN {$|++} print scalar(localtime), " ", $_' > outputfile
Source: http://stackoverflow.com/questions/10679807/how-to-timestamp-every-ping-result
ping host | perl -nle 'BEGIN {$|++} print scalar(localtime), " ", $_' > outputfile
Nessun commento :
Posta un commento