http://www.perlmonks.org?node_id=56418


in reply to (tye)Re4: one-liner hogs
in thread one-liner hogs

Serves me right for working on a machine with no /dev/zero.... argh.

The <> operator will seek $/, never find it, and just fill memory to the rlimit. Not great for a disc test.

That makes the 'line' read:

perl -e 'open M,"/sbin/mount|grep -v':'";while(<M>){($m)=split($_); if(fork){open Z,"</dev/zero";open F,">$m/.#overflow#";while(read(Z, $x,4096)){print F $x}}};

Bleh.

cat /dev/zero > /tmp/kill.system

Less effective, but easier to type. And probably a good way to muck up 90% of systems :-)