Gossamer Forum
Home : General : Perl Programming :

Extracting Telnet-data (top) with perl?

Quote Reply
Extracting Telnet-data (top) with perl?
Hi,

with telnet and the command top i see the following for mysql:
Code:
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND
580 root 2 0 15660K 6848K poll 0 27:51 6.45% 6.45% mysqld
.... further processes ...

Is there any chance to get this data into a perl script?

Any sample?

Thanks a lot!
Quote Reply
Re: [TB2] Extracting Telnet-data (top) with perl? In reply to
You could use system calls, although not secure.

pugdog mentioned about a GUI-based monitoring program that includes "top" reports in this forum about a year or so ago.

Search for pugdog top in this forum.
========================================
Buh Bye!

Cheers,
Me