in reply to I want to get os all configuration
Example:
#! /usr/local/bin/perl use strict; use warnings; use Linux::SysInfo; use Win32::SystemInfo; my $this_system = $^O; if ($this_system eq 'MSwin32') { my %windata; Win32::SystemInfo::MemoryStatus(%windata); #### # process the results #### } elsif ($this_system eq 'Linux') { my %linuxdata; %linuxdata = Linux::SysInfo::sysinfo() or die "Linux::SysInfo::sys +info() failed"; ##### # process the results ##### } else { die "Undefined OS -- $this_system"; } exit(0);
----
I Go Back to Sleep, Now.
OGB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |