Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Setting a timer to a system call

by Freezer (Sexton)
on Aug 17, 2012 at 13:47 UTC ( [id://987973]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Setting a timer to a system call
in thread Setting a timer to a system call

system ($call); # This is where my system call is my $worker_pid = open( READ, "top -d 1 -b |" ); # What does this + line mean? print "\t$worker_pid\n"; while(<READ>){ } return; }
My question is embedded in the code. Thanks.

Replies are listed 'Best First'.
Re^5: Setting a timer to a system call
by zentara (Archbishop) on Aug 18, 2012 at 08:42 UTC
    That is called a piped open, where I run the program "top'" and collect output from it. It was just meant as an example, you could put "system( my_java )" or whatever you want done in the thread.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found