Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Running a Background Job

by andyford (Curate)
on Nov 20, 2007 at 22:40 UTC ( #652011=note: print w/ replies, xml ) Need Help??


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)?


Comment on Re: Running a Background Job
Re^2: Running a Background Job
by perlfan (Curate) on Nov 21, 2007 at 00:04 UTC
    Update: sorry, I thought you were saying 'perl' couldn't run in the background - didn't catch the issue with 'top' until after :-/

    What?! This is absolutely false. 'perl' can certainly run in the background!
    # perl -e 'print "hello\n"' > test.out 2>&1
    #cat test.out hello

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://652011]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2015-07-07 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls