Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/expect  -f
    #!expect  -f $1 $2
    ...
                    send -s -- "send $retfil\r"
                    send -s -- "c\r"
            }
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
                   ],
                   '-re', qr'[#>:] $', #' wait for shell prompt, then exit
    + expect
                  );