in reply to Re: Running a Background Job
in thread Running a Background Job

Correction:
use strict; open (OUT,">top.log") or die "cannot create: $!\n"; for (;;){ my $top = `top n 1`; print OUT $top; sleep 10; } close OUT;
Sorry I was actually abbreviating my original script from memory. The script writes and executes top just fine when I don't run it as a background job. The explanation that top does not run as a background job is very helpful. Thank you.