Language Selection

English French German Italian Portuguese Spanish

Perl script to monitor disk space and send an email

Filed under
HowTos

How to write a perl script that can monitor my disk space under UNIX or Linux and send me an email alert? There is a nice perl system routine called Perl df or Filesys::DiskSpace.

Task: Install Filesys::DiskSpace

First you need to install this perl module using apt-get or from cpan (Comprehensive Perl Archive Network).

$ sudo apt-get install libfilesys-diskspace-perl

Perl script code to monitor disk space

Now write a perl script called df.pl:

$ vi df.pl

Full Story.

More in Tux Machines

Controversy is a state of prolonged public dispute or debate

Charlotte vs Georgia State Live Streaming

Alcatel built a 17-inch Android tablet for your kitchen

Alcatel wants its new 17.3-inch Xess tablet to be a multipurpose hub for the family, providing recipes in the kitchen, films in the living room, and a digital whiteboard for to-do lists and upcoming events. However, the severely underpowered Android device doesn't seem to be capable of entertaining even a single individual, let alone a whole household. The device has a fine 1920 x 1080 display, but an unspecified 1.5 GHz processor and 2GB of RAM mean that even swiping through pages of apps becomes a chore as icons are dragged slowly across the screen. Alcatel has stressed that the Xess is still a prototype at this stage, but it's in need of some serious upgrades. Read more

Elive 2.6.10 beta released

The Elive Team is proud to announce the release of the beta version 2.6.10 Read more

Second openSUSE 42.1 Leap Milestone Has Linux Kernel 4.1.6, Libreoffice 5.0, More

The openSUSE Project, through Douglas DeMaio, has announced the immediate availability for download and testing of the second Milestone build towards the openSUSE 42.1 Leap operating system. Read more