RE: [cciug] Pelr Scripts

From: Daigle, Sheldon (SDaigle@unispherenetworks.com)
Date: Fri Sep 29 2000 - 07:27:23 EDT


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