Somehow I managed to find mostly articles with long headlines this week.
- Getting work done while you’re fishing – with expect.
- Linux workstation security checklist. Most of this would apply to a BSD system too. (via)
- Everything You Always Wanted to Know About Fsync(). From the POSIX point of view.(via)
- There are only two hard problems in distributed systems: (via I lost the source, sorry!)
- The somewhat surprising history of chroot(). (via multiple)
- Modern *BSDs have a much better init system than I was expecting.
- The Ethics of Unpaid Labor and the OSS Community. (via)
- The Research Is Clear: Long Hours Backfire for People and for Companies. I found this out the hard way over last winter. (also via)
- The most obsolete infrastructure money could buy. Can’t top this. (via)
- Unix Administration Horror Stories. (via)
- Roguelike Tutorial in Rust. (via)
The expect (first) link is 404. The main site is a lawyer’s site. Is there a typo in the domain?
Yes – somehow the first few characters got truncated. Fixed!
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
}
————————