17 Dec
2003
17 Dec
'03
11:17 p.m.
> Dale Thorn <dthorn@gte.net> wrote: > > It's a hundred times easier to do tools for the IBM PC. I make > > utilities for the PC, and it would take no more than ten or fifteen > > minutes to cook this one up. > > It took me less than ten minutes... > > > But nobody answered my question: Is there a shortcut way to do the > > wipe, say, thirty times? Ordinarily, I'd run the program thirty > > times, which would consist of a data write followed by a flush, > > which would take 30x amount of time. > > Try this in Linux... > > #!/bin/csh > set n=1 > loop: > cat /dev/urandom >/tmp/fill + sync;df >/dev/null > rm /tmp/fill > @ n = $n + 1 > if ( $n < 30 ) then > goto loop > endif > and it just might work.