Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: termination of system command

by tcf03 (Deacon)
on Feb 11, 2008 at 16:27 UTC ( #667411=note: print w/replies, xml ) Need Help??


in reply to termination of system command

This does not answer your question directly, but why reinvent a wheel here? vmstat will stop itself using it like vmstat delay count. Using the following vmstat will stop collecting after 10 iterations at 10 second intervals.
@val = `vmstat 10 10`;


update - system or IPC::Run3 may serve you better.

Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
  --Ralph Waldo Emerson

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-05-28 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?