Annotation of embedaddon/arping/extra/print_time.ex, revision 1.1

1.1     ! misho       1: #!/usr/bin/expect -f
        !             2: 
        !             3: # Usage: print_time.ex arping 192.168.0.1
        !             4: 
        !             5: log_user 0
        !             6: eval spawn $argv
        !             7: 
        !             8: expect {
        !             9:        -re ".*\n" {
        !            10:          send_user [clock format [clock seconds] -format "%Y-%m-%d %H:%M:%S" ]
        !            11:          send_user " $expect_out(buffer)"
        !            12:          exp_continue
        !            13:        }
        !            14: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>