Unix shell - how to remove files in the cron which are N days old

Hey guys:
I know it's unix question rather then oracle.
I have to gzip my archive logs due to the lack of space. Because of that, RMAN command "delete noprompt obsolete" (on the cron) does not delete the gzipped arch logs and I have to do it with rm command.
I have this line in my file which runs on cron:
find /db/oraarch/PROD1/arch*.arc.gz -mtime +2 -print |xargs rm
It sends an error:
Subject: cron
Usage: rm [-Rfir] file ...
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
Any suggestions - maybe even to somehow delete compressed arch logs from inside RMAN?
TIA,
Greg

Greg, what about:
find /db/oraarch/PROD1/arch*.arc.gz -mtime +2 -exec rm {} \;
If this does not work then trying adding the -f option to rm to supress messages
HTH -- Mark D Powell --

Similar Messages

  • Remove unnecessary transport requests which are 7 days old

    Hi All,
    I would like to delete all the un-necessary transport requests which are displayed in STMS which are more than 7 days old.
    But, the import log should be available whenever i need to verify.
    Is there any script which can do this?
    Thanks
    Vijay

    Hi,
    I do have a similiar situation, I would like to write a script to remove transports that have successfully transported and are over 7 days old.   In STMS currently we have a list of every transport that has ever been sent and there is no need.  Note that via SE10 we still want to see transport history even for old transports just remove the old ones from STMS. Hopefully I feel some script does this job and no idea on this scripts.
    Can someone throw light on this and help me out.
    Thanks & Regards,
    Bharadwaj.

  • How can I remove files from the startup disk

    I am getting a screen when I am trying to quit saying   the "MAC OS X startup disk has no more space available for application memory"  by closing the windows and removing files from the startup disk will help.
    How do I do this?

    That error message is misleading. Your problem is excessive swapping of data between physical memory and virtual memory.
    That can happen for two reasons:
    You have a long-running process with a memory leak (i.e., a bug), or
    You don't have enough memory installed for your usage pattern.
    Tracking down a memory leak can be difficult, and it may come down to a process of elimination.
    In the Activity Monitor application, select All Processes from the menu in the toolbar, if not already selected. Click the heading of the  Real Mem column in the process table twice to sort the table with the highest value at the top. If you don't see that column, select
    View ▹ Columns ▹ Real Memory
    from the menu bar.
    If one process (excluding "kernel_task") is using much more memory than all the others, that could be an indication of a leak. A better indication would be a process that continually grabs more and more real memory over time without ever releasing it. Here is an example of how it's done.
    The process named "Safari Web Content" renders web pages for Safari and other applications. It uses a lot of memory and may leak if certain Safari extensions or third-party web plugins are installed. Consider it a prime suspect.
    If you don't have an obvious memory leak, your options are to install more memory (if possible) or to run fewer programs simultaneously.
    The next suggestion is only for users familiar with the shell. For a more precise, but potentially misleading, test, run the following command: 
    sudo leaks -nocontext -nostacks process | grep total
    where process is the name of a process you suspect of leaking memory. Almost every process will leak some memory; the question is how much, and especially how much the leak increases with time. I can’t be more specific. See the leaks(1) man page and the Apple developer documentation for details.

  • When trying to upload a PDF to an interactive site I get the announcement:"The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach." How do I embed this, or in fact any other font ?

    When trying to upload a PDF to an interactive site I get the announcement: "The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach."
    I could not get rid of the Tahoma font in the WORD file.
    How do I embed this, or in fact any other font ?

    Thank you very much !
    Indeed, I was unaware of the enormous number of options that can be selected when converting a WORD file to PDF.
    I went thru the settings and found the right one for embedding the fonts.
    Thanks again !
    Oren

  • Startup disk is full and the laptop can't operate.  How I remove files for it to work?

    Startup disk is full and the laptop can't operate.  How I remove files for it to work?

    Can you turn on the Macbook Pro?
    If yes, can you see the hard drive icon?
    Have you emptied the trash?

  • How to remove hash in the value of the field fetched from application serve

    Hi,
       I am populating values of the file which is in the application server to the internal table. But for the last field hash is also populating from the file along with the value.
    Please suggest me how to remove hash in the value of the last field.
    Thanks,
    Neelima.

    Hi Vinay,
    Please check the program. I have used the replace statement but it is not working.
    IF NOT v_sap_bom_rec IS INITIAL.
    Spliting the records at '~' delimiter
        SPLIT v_sap_bom_rec AT c_del INTO  wa_bom_file-model_name
                                           wa_bom_file-product_code
                                           wa_bom_file-description
                                           wa_bom_file-product_type
                                           wa_bom_file-mfg_part_num
                                           wa_bom_file-mfg_part_desc.
        REPLACE cl_abap_char_utilities=>horizontal_tab IN wa_bom_file-mfg_part_desc WITH space .
        wa_bom_file-status = c_status.
        APPEND wa_bom_file  TO i_bom_file.
    But it is not working.
    Please help me..
    Thanks
    Neelima

  • I keep getting an error code while trying to import a cd to my itunes: Error occurred while converting the file. The disc you are attempting to use is full. removing files and emptying the recycle bin will free up additional space.  What does this mean?

    I keep getting this error code while trying to import a cd to my itunes: "Error occurred while converting the file. The disc you are attempting to use is full. removing files and emptying the recycle bin will free up additional space."  What does this mean?

    Well it probably means exactly what it says... How much free space is there on your hard drive where the iTunes Media folder resides? I believe there is also an obscure bug that can occur when software doesn't read the true value of the free space properly, and the workaround is, perversely, to duplicate some content so that with less actual free space the software in question perceives it as more. I've no idea if iTunes is affected by such a bug.
    tt2

  • HT1386 The first time I synced my iphone with my mac, I didn't realize that all of my photos from iphoto would transfer over to the phone.   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the

    The first time I synced my iphone 4 with my mac, I didn't realize that all of my photos from the iphoto library would transfer over to the phone (more than 3,000).   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the phone.  I tried to uncheck boxes and sync again, but I get a message that there is no room on the iphone.  I've read as many articles as I can find, but still cannot manage this.  Thanks for any help.

    Open itunes, connect iphone, select what you want, sync

  • How to attach files in the SMTP mail?

    Hi All
    Anyone know how to how to attach files into the mail configured
    with SMTP while changing the workstatus. The SMTP mail is working
    fine, but my requirement is to attach a file which is having static information
    like instructions for users or something like that.
    Please help me on this..
    My Version of BPC is MS 7.X
    Regards,
    Baijuchandran.B

    Have you seen this thread? Not an elegant solution, but it appears to work for some bizarre reason.
    https://community.bt.com/t5/Email/Email-won-t-accept-attachments-error-18-temporary-It-isn-t/td-p/14...

  • How to attach files to the thread we post in this forum?

    How to attach files to the thread we post in this forum?
    I’m wondering why there is no feature that allows attaching files from our hard drives! It is not practical to upload our file first in a certain web to provide it as a link in the post.
    Is there a way to attach our files directly from our hard drive to the post?
    Please, have a look on the screenshot below that shows a forum which includes all the very basic features!
    Thank you for the help
    Best
    Jamal

    Pierre,
    Just a guess on my part, but I would suspect non-image files in this case.
    As Ted points out, that WAS possible early on, and then the capbility to attach non-image files, was actually retained by a certain few forums, though not for long. This change was coincidental with a major spam attack, and at least one disgruntled user attempting to attach some rather nasty "stuff." I do ot know if those events prompted the change, as I was not part of the decision making group, that initiated the change.
    Though 95% of the files that I wish to attach, ARE image files, there are times, where a TXT file would be ideal, say for a crash log, or similar. Now, I can convert that TXT to a PNG, but then one has to work with pixel x pixel dimensions, and some files, like those crash logs, can be rather long.
    Personally, I find the loss of the Attach File (was via a button at the bottom-left of the editing screen) to be a sad comment on the actions of some, on these forums, but then that just reflects life outside of the forums.
    Hunt
    PS - I am glad that you found that little article useful Especially in the PS, PrPro, PrE and Encore forums, screen-caps can tell so very much about what is going on with a person's program, system or their Projects/Images.

  • How to remove space below the table in smartforms

    how to remove space below the table in smartforms

    maintain a loop counter for item say count
    and in text editer write
    if count > 6
      new-page.
    endif.

  • How to remove the buttons which are coming from a report?

    Hi All,
    I need to remove the buttons from an iview which is a sap transaction. when i execute the  report program which uses a ldb (PCH) shows a selection screen having all the buttons.
    We have created variants for this.Now i want to remove the buttons which are coming from the report program.how to do this ?
    Lakshmi.

    Hi,
    I think u r mentioning about the addition buttons that appear in the selection screen when using a logical database. for removing these buttons u can use a function module RS_SET_SELSCREEN_STATUS  for setting ur own pf-status
    do this in "at selection screen output" of the program..
    in the tables parameter, u have the option for giving the ok-codes that u want to remove. append all the ok-codes into this table.
    for getting the ok-codes u can use "tab" and go the button.. press F1. it will give the ok-code.
    Regards,
    Anoop

  • Updated to Mavericks OS X but can't use my external drive by WD My Passport. The Mac reads it but I can't add/remove files to the external drive. Help?!

    Updated to Mavericks OS X but can't use my external drive by WD My Passport. The Mac reads it but I can't add/remove files to the external drive. Help?!
    The WD My Passport, I purchased back in early December 2013 & I just used it the other day after I updated my Macbook... & of course it says in the online manual it works for Mac Lion, Mountain Lion, Snow Leopard but not this new Maverick update. Is there anything I can do?

    I like the free demo of SuperDuper to make clones. It's free, Tiger and Leopard ready and is easy to use. If you buy the full version you can do incremental backups.
    You should use Disk Utility to do a Disk Repair, as shown in this link, booted up on your install disk, before you make a clone of it.
    I then partition my external disk, in Disk Utility, with a partition that is the same size , actually a tad bigger, as my system disk. I then use SuperDuper to clone my system disk over to that partition.
    With a clone on an external FireWire drive (USB drives are not bootable on some Macs) you can bootup on it to do your repairs or just run your Mac anytime you have trouble with your main drive. Be careful, there are a few external FireWire drives out there that are not bootable on Macs. Check the drive's manual to be sure.
     DALE

  • How to remove or change the color of hair in a beard? [was:does anyone know]

    how to remove or change the color of hair in a beard

    There are many ways to do that and there are many free tutorials on the web for doing that in Photoshop.

  • How to remove and change the color of Java cup and border

    Hi to all,
    How to remove and change the color of Java cup and border.
    Thanks in advance
    khiz_eng

    This is just an Image. You would need to create your own image and call setIconImage(Image) on your JFrame.

Maybe you are looking for

  • Hyperlink Colors

    We are experiencing a minor problem with hyperlink colors, specifically "visited" hyperlinks. The color is not changing. I have checked the browser and the settings are set to colors for the visited and unvisited links. Is this setting controlled any

  • Base64 and dbms_output problem

    Hello, I'm trying to write a function that generate HTML content for sending inside a mail. This HTML content needs to have some picture inside it. To do so I'm using some conversion function from blob to base 64 encoding. To be sure that my function

  • Reports & Portal integration

    Once you have deployed a report as a portlet in Portal, according to this document (http://download-east.oracle.com/docs/cd/A97329_03/bi.902/a92102/pbr_run.htm#1008446) you should be able to schedule it to run regularly, and to push the resulting rep

  • Reconnect with changed off-line media path

    Hi.  I've had my catalogued images on a network drive for several years.  Recently had a major failure and re-built the drive, re-loaded from backup etc.  Unfortunately, since the overall requirements for the drive had changed over the years, when re

  • What to do about my drive continuously shooting my cds back out?

    My drive was working just fine a few minutes ago until I put my Sims game in and it asked to download its updates. As soon as it began to download, it stalled. I ejected the cd, shut it down, waited a few minutes, started it back up and put in the ga