Changeset 29


Ignore:
Timestamp:
Feb 4, 2008, 8:36:56 PM (13 years ago)
Author:
g7moreau
Message:
  • Change shell sort argument
    • old : sort +2rn
    • new : sort -rn -k 2
    There is no more warning with new version of sort
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r28 r29  
    135135   #my $cmd = "grep  -e '".'\b'."$param_ip_or_host".'\b'."' /var/lib/arpwatch/arp.dat | sort +2rn | head -1";
    136136#   my $cmd = "grep  -he '".'\b'."$param_ip_or_host".'\b'."' /var/lib/arpwatch/*.dat | sort +2rn | head -1";
    137    my $cmd = "grep  -he '".'\b'."$param_ip_or_host".'\b'."' /var/lib/arpwatch/$interface.dat | sort +2rn | head -1";
     137   my $cmd = "grep  -he '".'\b'."$param_ip_or_host".'\b'."' /var/lib/arpwatch/$interface.dat | sort -rn -k 2 | head -1";
    138138   my $cmd_arpwatch = `$cmd`;
    139139   chomp $cmd_arpwatch;
Note: See TracChangeset for help on using the changeset viewer.