All pastes #610640 Raw Edit

Unnamed

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


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

script -c "ssh $* " /var/log/$logname

exit