#! newtime=$(date +%y%d%h%M%S) if ["$2" != "-l"] ; then telnet $1 $2 | tee -a /var/log/$newtime exit