×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

OS of a remote machine

OS of a remote machine

OS of a remote machine

(OP)
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.
 

RE: OS of a remote machine

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.

RE: OS of a remote machine

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.

RE: OS of a remote machine

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close