All pastes #610616 Raw Edit

Unnamed

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


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

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



exit