in reply to Re: one-liner hogs
in thread one-liner hogs
For disc overflows:
not perl, but works:
cat /dev/zero > /tmp/.#overflow#
Of course, could also be
perl -e 'open T,">/tmp/.#overflow#";open F,"</dev/zero";while(<F>){pri +nt T;};'
Or the 'smarter'(?) way to completely overflow a machine (but probably only as root):
perl -e 'open M,"/sbin/mount|grep -v':'";while(<M>){($m)=split($_);if( +fork){open Z,"</dev/zero";open F,">$m/.#overflow#";while(<Z>){print F +}}};'
But that's WAY too much to memorize, da?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re4: one-liner hogs
by tye (Sage) on Feb 01, 2001 at 22:30 UTC | |
by baku (Scribe) on Feb 05, 2001 at 20:23 UTC |