Perl

Soldato
Joined
17 Jan 2006
Posts
2,890
Location
Dundee
How do everyone. I'm in a bit of a pickle and have to write a simple perl program that would be useful from a networking point of view.

I plan to write something that when run will check the free space on a hard drive and email the details to network administrator, This is soemthing that can be done on system startup for example.

Only thing is I dont have a clue as to how I go about it.

Any suggestions / ideads etc would be extremely helpful.
 
growse said:
Are these windows or linux boxes? Probably easier on linux as there are system commands that can give this sort of information very easily. Also, sendmail can be used to send the mail.

For windows, you could use a module like Win32::DirSize.

It will run on Linux machines.

TBH it is for Uni so it does not need to be pretty, as long as it does something. I am struggling as I am in 3rd year and came straight to this from college (with no programmin skills at all). Althougt the course is Networks, it is in facvt 80% programming and web development.

Cheers
 
Cheers for that - just have to figure out how PERL can gather information on the size and total free space of a drive.

I i can get that it will be a done deal.
 
Back
Top Bottom