File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / arping / extra / print_time.ex
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 16:26:43 2014 UTC (10 years, 4 months ago) by misho
Branches: arping, MAIN
CVS tags: v2_13, HEAD
arping 2.13

    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>