Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; open (OUT,">top.log") or die "cannot create: $!\n"; for (;;){ my $top = `top n 1`; print $top; sleep 10; } close OUT;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Running a Background Job
by andyford (Curate) on Nov 20, 2007 at 22:40 UTC | |
by perlfan (Parson) on Nov 21, 2007 at 00:04 UTC | |
Re: Running a Background Job
by ikegami (Patriarch) on Nov 20, 2007 at 22:51 UTC | |
by Anonymous Monk on Nov 20, 2007 at 23:45 UTC | |
Re: Running a Background Job
by hsinclai (Deacon) on Nov 20, 2007 at 23:44 UTC | |
by Anonymous Monk on Nov 21, 2007 at 00:12 UTC | |
Re: Running a Background Job
by perlfan (Parson) on Nov 21, 2007 at 00:02 UTC |