All pastes #610667 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-07-09 16:04 UTC
rendered paste body
$ cat xx
#!/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