bad 'find' job in cron

From: Shawn Bierman (BiermanS_at_METHODISTHEALTH.ORG)
Date: 05/27/03

  • Next message: Patrick B. O'Brien: "Re: X-Windows Timeout AIX 4.3.3"
    Date:         Tue, 27 May 2003 08:54:32 -0500
    To: aix-l@Princeton.EDU
    
    

    Greetings,

    I have a job in cron that works fine from the command line but when the cron job runs i get the following email:

    find: 0652-009 There is a missing conjunction

    *****************************************************************
        cron: The previous message is the standard output
        and standard error of one of the cron commands.

    The cron entry looks like this:
    15 02 * * * (/usr/bin/find /sapbc/Server/logs -name \*.log -mtime +30 -xdev -type f | /usr/bin/xargs rm -f)
    20 02 * * * (/usr/bin/find /sapbc/Server/packages/SAP/logs -name \*.log -mtime +30 -xdev -type f | /usr/bin/xargs rm -f)

    Ran from the command line it works fine. What does cron not like here?

    -shawn


  • Next message: Patrick B. O'Brien: "Re: X-Windows Timeout AIX 4.3.3"

    Relevant Pages

    • Cron entry & .profile question
      ... Cron jobs can be confusing at times. ... When I run a script I wrote from ... The bourne shell uses the command "." ... Should I run my cron job as root or should I make a new cron entry ...
      (SunManagers)
    • Re: crontab
      ... The previous message is the standard output ... > and standard error of one of the cron commands. ... Have you tried running the command from the shell? ...
      (comp.unix.aix)
    • Re: crontab error email question
      ... > which main process did the ls command since it's not directly invoked from ... So basically the crontab only displays the output but doesn't ... The previous message is the standard output ... > and standard error of one of the cron commands. ...
      (comp.unix.aix)
    • Re: Cron Job
      ... If you mean the computer itself, put that command ... The standard 'cron' runs jobs at a specific time/date. ... Init or @reboot run jobs when ... Sunday night at 02:00) then copy the script and cron entry. ...
      (comp.os.linux.misc)
    • Re: Cygwin problem with cron and networked drives
      ... command line it is recognized. ... Is the cron job running on a linux system or an MS Windows system? ... versus the user running the cron job. ...
      (comp.os.linux.networking)