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


in reply to Running a Background Job

top won't run from the commandline with &, so it's not surprising that perl can't do it either.

Are you trying to gather system statistics? If you really want to use top, have you tried top's batch mode (-b option)?