Forum Moderators: phranque
Is there any simple and ACURATE way to check it out?
Is there any simple script
Am I supposed to have a SSH to do that?
It would be an advantage to have shell access, however you may be able to check with a perl script. The following script should work.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<pre>\n";
system("/bin/df -h");
while (<>) { print; }
print "</pre>\n";
exit;
Run it from the cgi-bin
http: //mydomain.com/cgi-bin/script.pl
You should get output similar to the following. There may be less partitions. If Use% is 99% for a partition it is probably full
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 100M 43M 54M 47% /boot
/dev/hda3 1.4G 98M 1.2G 7% /
/dev/hda4 41G 143M 39G 1% /home
/dev/hda5 7.7G 1.3G 6.0G 18% /usr
/dev/hda6 3.8G 87M 3.5G 3% /var
/dev/hdb1 73G 571M 69G 1% /home2