Professional Web Applications Themes

file removal - SCO

Hi, How can I remove a users files that have not been used (accessed, modified, etc) within the last 5 days. Regards Leeds...

  1. #1

    Default file removal

    Hi,

    How can I remove a users files that have not been used (accessed, modified,
    etc) within the last 5 days.

    Regards
    Leeds



    MMS Guest

  2. #2

    Default Re: file removal

    MMS - Leeds typed (on Fri, Sep 12, 2003 at 01:18:26PM +0100):
    |
    | How can I remove a users files that have not been used (accessed, modified,
    | etc) within the last 5 days.

    find /some/directory -user some_user_name -atime -5 | xargs rm.

    However, you may not really want atime, you might want mtime or ctime.

    But think carefully about doing this: if a use stays logged in for six
    days, you may delete his|her .profile. And if a user has written
    several scripts, why delete all of them that the user had no reason to
    run in the last five days?



    --
    JP
    Jean-Pierre Guest

  3. #3

    Default Re: file removal

    thanks jp

    appreciate your comments, the files to remove all temp files created by a
    legacy application, in a set directory.

    Jean-Pierre Radley wrote in message
    <jpr.com>... 
    modified, 


    MMS Guest

Similar Threads

  1. Catch 22 with file removal or mysql queries?
    By Bonge Boo! in forum PHP Development
    Replies: 2
    Last Post: July 11th, 04:59 AM
  2. Quick removal of the begging of a file?
    By Benjamin Goldberg in forum PERL Miscellaneous
    Replies: 8
    Last Post: August 22nd, 01:20 AM
  3. Windows XP Folder/File Encryption removal after Windows XP re-install
    By Salvatore in forum Windows Setup, Administration & Security
    Replies: 1
    Last Post: July 8th, 11:22 PM
  4. File Attachment Removal
    By Bob in forum Windows Setup, Administration & Security
    Replies: 1
    Last Post: July 7th, 04:21 PM
  5. red-eye removal
    By Mark in forum Photography
    Replies: 0
    Last Post: June 25th, 04:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139