Have you tried looking into the %ENV hash in each OS? There are generally particular keys and/or values that let you know where you are running.
HTH
Paco Zarabozo
From: Greg Schraiber <[EMAIL PROTECTED]>
To: [email protected]
Subject: determining OS
Date: Tue, 17 Jul 2007 15:55:09 -0500
MIME-Version: 1.0
Received: from mx.activestate.com ([209.17.146.130]) by bay0-mc9-f20.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 17 Jul 2007 13:55:23 -0700
Received: from box14.activestate.com (unknown [192.168.70.104])by mx.activestate.com (Postfix) with ESMTP id B4D01A4601;Tue, 17 Jul 2007 13:55:06 -0700 (PDT)
Received: from beloit.edu (beloit.edu [144.89.40.1])by mx.activestate.com (Postfix) with ESMTP id 955DDA45D8for <[email protected]>;Tue, 17 Jul 2007 13:55:03 -0700 (PDT)
Received: from bcits5986.beloit.edu ([144.89.41.15])by beloit.edu (8.13.1/8.13.1) with ESMTP id l6HKt2bg001401for <[email protected]>;Tue, 17 Jul 2007 15:55:02 -0500
>Hi All!
>
>I have a script (perl v5.8.5) that needs to run on both AIX and
>linux. Does anyone have a code snippit that would allow the script
>to determine which OS it is currently running under? Any help would
>be greatly appreciated!
>
>Thank you!
>Greg
>
>
>_______________________________________________
>ActivePerl mailing list
>[email protected]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Tu horóscopo diario, semanal y gratuito. Cartas, tarot y predicciones en MSN Horóscopo
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
