Professional Web Applications Themes

crontab script -reg(chettinad) - Sun Solaris

Dears, I want small help anybody ... I want one crontab command to delete *.t extension files in /usr/ location. File will automatically delete everyweek friday 6.00pm without our knolwedge Regards shakthiwala...

  1. #1

    Default crontab script -reg(chettinad)

    Dears,

    I want small help anybody ...

    I want one crontab command to delete *.t extension files

    in /usr/ location.

    File will automatically delete everyweek friday 6.00pm

    without our knolwedge

    Regards
    shakthiwala
    Shakthi Guest

  2. #2

    Default Re: crontab script -reg(chettinad)

    On 8 Oct 2003 00:34:58 -0700 com (Shakthi) wrote: 

    0 18 * * 5 find /usr -name '*.t' -exec rm {} +

    Frank Guest

  3. #3

    Default Re: crontab script -reg(chettinad)

    Shakthi wrote: 

    are you sure about this? To my knowledge a standard installation
    includes files with a .t extension under /usr/lib/iconv

    I'm not familiar with what they do, exactly (though I'm looking hard at
    the iconv utility) but I'd suggest randomly ing away system files is
    a Bad Idea.

    I'd *strongly* recommend a) not creating temporary stuff under /usr at
    all unless it's in /usr/tmp (which should really be /var/tmp in any
    case) or some non-standard directory which you have defined and know
    *everything* about and b) not hosing files under system directories
    without knowing whether you'll also be removing system files.
    Large-scale "find -exec rm" can be a very messy business indeed.

     


    You'll have knowledge of it about 03:00 on Saturday, when whatever it is
    that uses /usr/lib/iconv/umptytum.t fails miserably and the guy that
    needs it to complete successfully by Saturday morning rings you up at
    home to get you to fix it.


    Now what are you *really* trying to achieve?

    --
    Tony

    Tony Guest

Similar Threads

  1. Running Dml Script in Crontab
    By mark.goudie@gmail.com in forum Linux / Unix Administration
    Replies: 8
    Last Post: May 24th, 03:09 PM
  2. Crontab
    By Antigoni in forum Linux / Unix Administration
    Replies: 2
    Last Post: June 4th, 12:15 PM
  3. Solaris to Windows(chettinad)
    By Shakthi in forum Sun Solaris
    Replies: 5
    Last Post: October 1st, 05:14 PM
  4. crontab bug?
    By LeVA in forum Debian
    Replies: 1
    Last Post: August 4th, 12:10 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