The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Working with multiple home directories. trey85stang Shell Programming and Scripting 11 05-16-2008 02:45 AM
Batch delete specific folder from user home directories nipodrom Shell Programming and Scripting 2 05-09-2008 06:22 AM
Delete Directories and Contents t4st33@mac.com UNIX for Dummies Questions & Answers 1 01-16-2007 07:20 PM
How to backup /home directories? kingsan SUN Solaris 1 05-03-2006 05:41 PM
HACMP users home directories zz2kzq AIX 1 02-21-2006 03:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-01-2006
munch munch is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 5
Delete old home directories

I have a script that deletes obselete users from /etc/passwd then moves their home directories to another location. After 30 days, I need to delete the home directories that were moved to the new location. I would appreciate any ideas on how to delete the directories after the 30 days?
  #2 (permalink)  
Old 03-01-2006
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,116
How about:
sleep 2529000
rm -rf /archive/$ouser

Just kidding. Seriously, just have a second script that runs once a month which searches your archive directory and deletes old subdirectories.
  #3 (permalink)  
Old 03-02-2006
munch munch is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 5
Thanks Perderabo.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0