checking free disk space

Langa Kentane LangaK at discoveryhealth.co.za
Mon Jan 15 07:23:59 EST 2001


Good day.

I want to write a script that I can use to check the free disk space on all
drives.  The script will be used in Linux and Wind0ze.

For instance, I want to write something like:

get list of mounts/drives
for i in mount_list
	check disk space left in %
	if disk space is certain amout:
		do this
	else
		do that
	endif
endrun

Please can you point me in the right direction.  I posted something before
on this list but I realised that will not work in a wind0ze environment.

Thanks in advance.

__________________________________________________________
Langa Kentane		| TEL: (011) 290 3218
Security Administrator	| Cell: 082 606 1515
DISCOVERY HEALTH		| http://www.discoveryhealth.co.za
__________________________________________________________________





More information about the Python-list mailing list