Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^4: Setting a timer to a system call

by Freezer (Sexton)
on Aug 17, 2012 at 13:47 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2022-01-22 09:35 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (62 votes). Check out past polls.