HighLife HighLife - 2 years ago 103
Perl Question

Checking Current File System with Perl

I need my perl script to check the file system type of the computer it's running on. What is the easiest way to do this? (on Linux)

Answer Source

There is a linux command df -T to determine filesystem

You can invoke it from your script and parse the output:

my $filesystem_info = `df -T`;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download