Unix

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Manipulate find

    1 answers - 537 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hello,
    The following entry in crontab:
    find /export/home/neat/neat* -mtime +90 -exec rm -f {} \;
    yields the following message in mail:
    Your "cron" job on rissna
    find /export/home/neat/neat* -mtime +90 -exec rm -f {} \;
    produced the following output:
    find: cannot open /export/home/neat/neatex*: No such file or directory
    Is it possible to modify the find above, so no mail is generated ?
    Regards,
    Marek
    sunmanagers mailing list
    sunmanagers (AT) sunmanagers (DOT) org
  • No.1 | | 910 bytes | |

    The following command does not mail error message:

    find /export/home/neat/neat* -mtime +90 -exec rm -f {} \; 2/dev/null

    Hereby I would like to thank you that mailed me directly with all
    suggestions for all valuable help.

    Regards,

    Marek

    Marek Grinberg wrote:
    Hello,

    The following entry in crontab:
    find /export/home/neat/neat* -mtime +90 -exec rm -f {} \;
    yields the following message in mail:
    Your "cron" job on rissna
    find /export/home/neat/neat* -mtime +90 -exec rm -f {} \;
    produced the following output:
    find: cannot open /export/home/neat/neatex*: No such file or directory

    Is it possible to modify the find above, so no mail is generated ?

    Regards,

    Marek

    sunmanagers mailing list
    sunmanagers (AT) sunmanagers (DOT) org

    sunmanagers mailing list
    sunmanagers (AT) sunmanagers (DOT) org

Re: Manipulate find


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Unix"

EMSDN.COM