![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unable to create any directory that uses numbers as the directory name | fed.linuxgossip | UNIX for Advanced & Expert Users | 16 | 01-13-2008 05:54 PM |
| test for directory being subdir of another directory | hackware | Shell Programming and Scripting | 8 | 12-04-2007 08:03 PM |
| determining actual directory of a symlinked directory | chiru_h | Shell Programming and Scripting | 3 | 09-24-2007 04:40 PM |
| determine owner directory permissions from within the directory | Sniper Pixie | Shell Programming and Scripting | 4 | 03-07-2006 02:06 PM |
| moving files from a unix directory to a windows directory | gleads | UNIX for Dummies Questions & Answers | 2 | 08-29-2002 05:42 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
If I wanted to have a cap on the amount of space used in a directory, how could I specify to a script that if a directory is full at what level, and then move out the oldest files until within a specified paramater?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You can call du with appropriate switchs from a crontab script and take action based on your requirements to move files. Try looking at the du command and write a crontab script to check every 'few' minutes.
|
||||
| Google The UNIX and Linux Forums |