Re: Help in checking the OS type...



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



Relevant Pages

  • Re: Background Intelligence Transfer Service
    ... Could not start the Background Intelligence Transfer Service service ... This service is running and lists BITS as a dependent service. ... operating system is Windows XP Home Edition SP2, ...
    (microsoft.public.windowsxp.general)
  • Re: Help in checking the OS type...
    ... It lists me out the operating system name thanks for the same. ... I need to develop a script where in i need to first check the type of OS ... commands and/or system calls for the differnt systems you intend to ...
    (perl.beginners)
  • Re: Another Hell Mutt Discussion
    ... of the lists. ... My field is operating system security. ... be seen as secure because nobody bothered taking a hard look at it. ...
    (rec.bicycles.tech)
  • Re: Help in checking the OS type...
    ... It lists me out the operating system name thanks for the same. ... I need to develop a script where in i need to first check the type ... Then the Total Space of each ...
    (perl.beginners)
  • Re: Think outside of the box (Gawd, I hate that term)
    ... > will never be one operating system that everyone uses. ... outside these lists. ... I have a Windows XP box and a Mac OS X machine at ... Cisco did its marketing job well (part of which was making good ...
    (freebsd-questions)