Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk Space Descisions

Status
Not open for further replies.

Thief

Technical User
Apr 19, 2001
92
US
could anyone please help me with a script, am very bad at writing them...
i need a script to monitor the user home directories at my site. i should be able to identify the no. of files less then 90 days old, 180 days old and 365 days old for each user in the system along with the individual disk usage for these slots. can someone come up with a magic...
the platforms that i can run this script can be hp-ux, irix or aix
thanks in advance..

Thief................ ::)
(I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us .)
 
man find
man du

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 


PHV is a little fast today :)

Thief, this is not a script, but a serious prog
a lot of Q what

1) if in filename you find a special char, nothing
exotic, just a '\n' character do you move it ?
to what ? is the new file unique ?
please don't affirm: it's inpossible, excepted the
NULL all char are allowed in unix.
2) do you do, files are jounger then 365 && 180 && 90
days and even no space on device ?
3) which files are concerned (regexp) ?
4) which rules for keep-alive|keep-in-tar|
keep-compressed|removing files ?
5) about restoring backups ?
6) special permissions (maybe root) are required, but
root is NOBODY on a NFS mounted fs.

you need a lot of answers, awailable|needed size on
partition, size|accesstime of files, knowing type of
file (cannot compress a compressed file)...and.. and

you cannot expect a shell gives you this infos, you
need at least very good knoledges of perl (or better)
and the OS you are working on.
a very elaborate += OS dependent prog.

i did it on solaris in 'c': a 4 months job

convince your principal to buy a 3.part solution
OR to hire me :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top