http://qs321.pair.com?node_id=987973


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