All pastes #609987 Raw Edit

Stuff

public text v1 · immutable
·published 2007-07-09 05:32 UTC
rendered paste body
#!/bin/sh

if [ "$1" == "-l" ]; then
  logname=$2
  shift 2
else
  logname=$(date +%y%d%h%M%S)
fi

telnet $* | tee -a /var/log/$logname


exit