[plug] Bash "Processing" Script

Russell Steicke r.steicke at bom.gov.au
Fri Jun 11 12:39:04 WST 2004


On Fri, Jun 11, 2004 at 12:33:18PM +0800, Russell Steicke wrote:
...
>   # Untested...
>   echo -n Imaging
>   Skip=0
>   while true ; do
>     dd bs=1M if=/dev/foo of=/dev/bar skip=$Skip || break
>     Skip=$((Skip+1))
>     echo -n .
>   done
>   echo


Danger, danger!  That dd line should probably have a seek argument, so
you don't keep overwriting the first block on the output device:

    dd bs=1M if=/dev/foo of=/dev/bar skip=$Skip seek=$Skip || break

I told you it was untested!



-- 
Russell Steicke

-- Fortune says:
You are magnetic in your bearing.



More information about the plug mailing list