Results 1 to 2 of 2

Thread: Perl: How do I get the OS type, like "uname"?

  1. #1
    Join Date
    Jan 2008
    Posts
    1

    Default Perl: How do I get the OS type, like "uname"?

     

    I figured hostname() returns the machine name. How to get the OS type? I want to get SunOS or Linux, similar to returns from "uname -s". Thanks!
    Response to a.sharda: I know options in uname. What I want is to get similar results inside my perl script. I need to do something in perl based on what OS it is..
    Powered by Yahoo!

  2. #2
    Join Date
    Jan 2008
    Posts
    1

    Default

    try using linux mandrake.
    Powered by Yahoo!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •