Shameless stolen from Lamby

#!/bin/bash


if [ -d "$1" ]; then

echo "$1" is a directory - aborting.

exit

fi


if [ -d "$2" ]; then

OUTFILE="$2/"`basename "$1"`

else

OUTFILE="$2"

fi


dd if="$1" of="$OUTFILE" &

PID=`pidof -s dd`


while <span class="createlink"><a href="/ikiwiki.cgi?page=_-x___34__%2Fproc%2F__36__PID__34___&amp;from=e%2F13017&amp;do=create" rel="nofollow">?</a>&#36;PID&#34; </span>; do

kill -USR1 "$PID"

sleep 1

done
Feedback

Powered by Vanilla PHP feedback form