Re: Help in checking the OS type...
- From: syedmazhar.hasan@xxxxxxxxx (Mazhar)
- Date: Tue, 25 Apr 2006 18:03:13 +0530
Paul,
It lists me out the operating system name thanks for the same. How can i go
about getting the different drives/volumes created on the same...
Regards
Mazhar
On 4/25/06, Paul D. Kraus <paul.kraus@xxxxxxxxx> wrote:
On 4/25/06, Mazhar <syedmazhar.hasan@xxxxxxxxx> wrote:
Hi Folks,
I need to develop a script where in i need to first check the type of OS
and
then go about in finding the drives.
pkraus@pkraus-laptop:~$ cat testperl.pl && perl testperl.pl
print "OS:$^O\n";
OS:linux
*$^O*
The name of the operating system under which this copy of Perl was built,
as determined during the configuration process. The value is identical to
$Config{'osname'}.
http://www.perl.com/doc/manual/html/pod/perlvar.html
HTH,
Paul
- Follow-Ups:
- Re: Help in checking the OS type...
- From: Jay Savage
- Re: Help in checking the OS type...
- From: Paul D. Kraus
- Re: Help in checking the OS type...
- References:
- Help in checking the OS type...
- From: Mazhar
- Help in checking the OS type...
- Prev by Date: Re: Help in checking the OS type...
- Next by Date: Re: Split function help
- Previous by thread: Re: Help in checking the OS type...
- Next by thread: Re: Help in checking the OS type...
- Index(es):
Relevant Pages
|