![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Findout iLO type installed in a machine | skmdu | Linux | 1 | 09-25-2009 05:38 AM |
| How to mount a Files System where RHEL is installed on a Sun server Machine.. | sankasu | SUN Solaris | 2 | 08-03-2009 09:24 AM |
| Installed memory ≠ usable size? | CRGreathouse | Filesystems, Disks and Memory | 23 | 07-16-2009 08:12 PM |
| How to Find JRE installed in linux machine..? | XivaX | Shell Programming and Scripting | 3 | 01-31-2008 09:18 PM |
| How to get amount of memory installed. | elgholm | UNIX for Dummies Questions & Answers | 4 | 08-24-2001 08:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
User perl to get memory installed in a machine
I currently have a statistics gathering script i run on my Linux servers. One of the stat i gather is total memory in the machine. The script is all perl with the exception of gathering the memory for that i use the following command: Code:
$ram = (`cat /proc/meminfo | grep "MemTotal" | awk '{print \$2}'`);
Is there a way to do this with an internal perl command (modules would work too, however to install them i need to go through a change management process). I just want to make it a pure perl script, not that it will make it any better i just want to. thanks, Sean |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|