File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / arping / extra / print_time.exp
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 18 13:16:10 2016 UTC (7 years, 8 months ago) by misho
Branches: arping, MAIN
CVS tags: v2_21, v2_15_cross, v2_15, HEAD
arping v2.15

    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>