Forwarded message:
> From cciug-owner@rational.com Fri Sep 29 04:38:36 2000
> Message-ID: <49FF5C6DDBD8D311BBBD009027DE980C6F13E9@uniwest1.redstonecom.com>
> From: "Daigle, Sheldon" <SDaigle@unispherenetworks.com>
> To: "'shashank@india.hp.com'" <shashank@india.hp.com>,
> "'cciug'"
> <cciug@rational.com>
> Subject: RE: [cciug] Pelr Scripts
> Date: Fri, 29 Sep 2000 07:27:23 -0400
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2650.21)
> Content-Type: text/plain;
> charset="iso-8859-1"
> Sender: owner-cciug@rational.com
> X-Majordomo-Taboo: cciug
> Precedence: bulk
> Content-Length: 1295
Still better:
if ($ENV{'OS'} =~ /Windows/)
{
Running on Windows
}
else
{
Running on Unix
}
>
>
> 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
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
--Regards,
David Highley Highley Recommended, Inc. 2927 SW 339th Street Federal Way, WA 98023-7732
Phone: (206) 669-0081 FAX: (253) 838-8509 Email: dhighley@highley-recommended.com WEB: http://www.highley-recommended.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:56 EDT