RE: [cciug] Pelr Scripts

From: Reedick, Andrew (JAReedick@Z-TEL.com)
Date: Fri Sep 29 2000 - 09:29:04 EDT


If you do a 'set' command from the NT DOS window, you'll see an ENV
variable: OS=Windows_NT

So the easy, simple way is:
        if ( $ENV{"OS"} eq 'Windows_NT' )
                ...

-----Original Message-----
From: Daigle, Sheldon [mailto:SDaigle@unispherenetworks.com
Sent: Friday, September 29, 2000 7:27 AM
To: 'shashank@india.hp.com'; 'cciug'
Subject: RE: [cciug] Pelr Scripts

I just check for the existence of "c:/"

Something like:

        If ( -e "c:/" ) {
                Set NT stuff
        } else {
                Set UNIX stuff
        }

Sheldon
 -----Original Message-----
From: Shashank [mailto:shashank@india.hp.com
Sent: Friday, September 29, 2000 12:29 AM
To: 'cciug'
Subject: [cciug] Pelr Scripts

Hi All,

This is not really a clearcase question. But I need the solution for this
Clearcase implementation only. I have a perl script which can be executed
from both NT & HP-Unix. Is there any way, I can find through which OS the
script is called while running the script & take required action depending
on the OS?

Thanks
Shashank

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:56 EDT