$ENV{OS}

will get you the os on some platforms,. run this simple script on your
systems and check it out..

foreach (keys(%ENV)){
 print "\$ENV{$_} $ENV{$_} \n";
}


pierre

----- Original Message -----
From: "Barry Carroll" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 1:17 PM
Subject: isWindows95() and isWIndowsNT()


> Hi all,
>
> This is my first post :)
>
> I once saw functions such as the ones above for perl.
>
> I am writing a script and I want to be able to determine
> the machine's Operating System type.
>
> Does anyone know where i can get these functions or
> similar ones to determine the OS type.
>
> I know how to get the OSType for a UNIX system, it's
> just windows that i'm having trouble with.
>
> Thanks! :)
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to