kdjantzen has asked for the wisdom of the Perl Monks concerning the following question:

In one of the posts to this list I found the following expression open(FSUTIL,"fsutil fsinfo drives | "); This obviously opens a file that contains the drive information. But what is >> "fsutil fsinfo drives | <<? Running this on my system I get an error message indicating that fsutil is unknown. Am I missing something? I'd appreciate your help.

Replies are listed 'Best First'.
Re: list of drives
by ELISHEVA (Prior) on Mar 05, 2009 at 08:13 UTC

    "fsutil fsinfo drives| " tells open to pipe the output of the fsutil fsinfo drives command to the file handle FSUTIL. fsutil is a Win XP/Server 2003 utility. "fsinfo drives" is one of its parameters. So that bit of code only works on certain MS-Win systems.

    Best, beth

Re: list of drives
by Corion (Patriarch) on Mar 05, 2009 at 08:10 UTC
Re: list of drives
by Anonymous Monk on Mar 05, 2009 at 08:08 UTC
    No. It opens command "fsutil fsinfo drives". perldoc -f open
Re: list of drives
by slacker (Friar) on Mar 05, 2009 at 13:27 UTC
    If this is a *nix based list you want, consider
    df -k
    or
    cat /proc/diskstats
      Right, I forgot to say that I use SuSE/Novell Linux. Is there no package for Linux as there is for Windows?