Hi,
The command "Uname -a" will tell you the OS name and the version
you can cal this from your perl script.
Dinesh
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Tuesday, January 15, 2002, 6:16:49 AM, Chris Anderson wrote:
> I need to find out which OS I am on -
> It would be nice to know:
> Ref Hiat
> Mandrake
> Slackware
> W2K
> W98
> WME
> WXP
> Solaris
> AIX, etc
> but
> Unix
> Linux
> W32
> is fine also
> How can I do this???
$^O should have
Try
uname -a
On my machine:
uname -a gives,
OSF1 brahma.igidr.ac.in V5.1 1885 alpha
HTH,
-tir
On Tue, 15 Jan 2002, Chris Anderson wrote:
> I need to find out which OS I am on -
> It would be nice to know:
> Ref Hiat
>
Hi Chris,
Perl's special variable $^O contains the name of the OS,
which is, e.g.
$^O eq 'hpux' # on HP-UX
$^O eq 'MSWin32' # on Windows
$^O eq 'linux' # on Linux
Hope this helps,
-- Marcus
| I need to find out which OS I am on -
| It would be nice to know:
| Ref Hiat
| Man