473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Perl: retrieve process info from different platforms

I am working on a script that will retrieve process info from a Linux, a Windows, a Suse and a Solaris hosts.

I run this script from a RedHat 2.6 machine. The first problem I have is how to get process info from a Windows XP host. There are only two ways to do it:
- directly execute a script from the RedHat machine, get the process info remotely
- telnet to the WinXP host and get process info locally then return back a temp file with all the info

for the first solution, I need to install Win32:IsWinNT, Win32, Win32::Process::Info on the RedHat 2.6 hosts. However, the cpan seems couldn't find the Win32::IsWinNT module

> # perl -MCPAN -e 'install Win32::IsWinNT'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Mon, 27 Jun 2005 05:58:10 GMT
Warning: Cannot install Win32::IsWinNT, don't know what it is.
Try the command

i /Win32::IsWinNT/

to find objects with matching identifiers.

Can I install those windows modules on a RedHat host? I did find out the cpan do test those windows modules on Linux platforms.

Any ideas? Thanks.
Oct 27 '06 #1
1 2659
miller
1,089 Expert 1GB
By Searching CPAN, http://search.cpan.org/search?query=Win32::IsWinNT, I discovered that IsWinNT() is a function of the package Win32.

Try this instead:

perl -MCPAN -e 'install Win32'
Oct 27 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: bezeee | last post by:
At my work we are in the process of building a tool to test an XML based API. Basically, XML in and XML out over http. Currently, there are two engines that do all of the schema validations, xml...
52
by: Olivier Scalbert | last post by:
Hello , What is the python way of doing this : perl -pi -e 's/string1/string2/' file ? Thanks Olivier
1
by: Julia Bell | last post by:
I would like to run the same script on two different platforms. The directory in which the script(s) will be stored is common to the two platforms. (I see the same directory contents regardless...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: cldale | last post by:
Hi, I am attempting to process a proprietary formatted file into flat csv for the purpose of bcp'ing into a SQL Server 2005 install. I tried writing a processor in Perl that "works" except that...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.