> i need a perl script which reports the free disk space > of a solaris 9 system. the script shud also tell me > about the top ten disk space users. > the format to report about disks is as follows :- > > Filesystem kbytes used avail capacity Mounted on > /dev/dsk/c0t0d0s0 246466 139322 82498 63% /
You don't need a perl script for that. That's the output of the command 'df -k' > the format for reporting the disk users is :- > > kB Path > 2460597 /export/home/abc The command for top 10 disk users would be: 'du -sk /export/home | sort -rn | head -10' -- Mark Thomas Internet Systems Architect _______________________________________ BAE SYSTEMS Information Technology 2525 Network Place Herndon, VA 20171 USA _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs