Lazy Reading for 2015/09/06

Somehow I managed to find mostly articles with long headlines this week.

3 Replies to “Lazy Reading for 2015/09/06”

  1. The expect (first) link is 404. The main site is a lawyer’s site. Is there a typo in the domain?

  2. expect saved my ass a lot of times. Dell PowerConnect 3548 switches don´t accept ssh batch commands, so, expect worker “as expected” (ba dum, tssssssssss), to remotely backup configuration to a tftp server.

    Snippet:
    ———————-
    pc3548(){
    /usr/bin/env expect <<-END3548
    spawn ssh -o StrictHostKeyChecking=no -o LogLevel=quiet $IP
    expect "User Name:"
    send "$USER\r"
    expect "Password:"
    send "$PASS\r"
    expect "*# "
    send "copy startup-config tftp://$SERVER/$SWNAME.cfg.bkp\r"
    sleep 10
    END3548
    }
    ————————

Comments are closed.