All pastes #609988 Raw Edit

Unnamed

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


#set logfilename to logname, shift to set telnet arguments properly


if [ "$1" == "-l" ]
then
   logname=$2
   shift 2
else
   logname=$(date +%y%d%h%M%S)
fi
telnet $* | tee -a /var/log/$logname


exit