Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OS of a remote machine

Status
Not open for further replies.

newbieatassembly

Technical User
Oct 4, 2000
39
IN
Hi,
Is there any module or any way of finding out what Operating system the remote machine is running on using perl ?

Tried cpan archives - couldn't find any module for it.

Thank you.
 
sometimes the os is stated inside the $ENV{"HTTP_USER_AGENT"} variable...

it might say something like
mozilla 4.0 compatible(Internat Explorer 5, Windows 98, blah blah blah)

this doesn't always work though... some os's don't give their name.

but, it's the only way i can think of.
 
On AIX, Linux, etc $ENV{shell} will give you the shell, this could help narrow it down a little, too. I don't think that there is a standard env var to determine OS, though. You could use some sort of combination of ..._user_agent and shell and some others.
 
Hi,
Isn't there a way of doing this in java using system.OS() or something like this.

I was looking more at this easy way of doing it but seems like perl doesn't provide such a method.

What about fingerstack printing technique to find out the running OS of a remote machine, how good is it? I would like your reviews on fingerstack printing.

To change th subject slightly -
1) What does "FEAR" signify to you?
To me it signifies the following :-
FEAR is something that helps you make the right choice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top