Re: crontab

From: Steve Nottingham (steve_at_wakefieldrfc.freeserve.co.uk)
Date: 04/08/04


Date: 8 Apr 2004 02:44:39 -0700


"MadUNIX" <madunix@web.de> wrote in message news:<c52od0$2oip2e$1@ID-172702.news.uni-berlin.de>...
> I am doing adily remote copy of some files between AIX 5.1 boxes
> to get this auto, i have added this to the crontab -e for oracle user
> 00 1 * * * /usr/bin/find /archive2/archive2/* -mtime -2 -exec rcp -p \{\}
> backup:/oradata9i/archive \;
> next day it was reporting an email with the following error
> To: oracle
> find: 0652-018 An expression term lacks a required parameter.
> *****************************************************************
> cron: The previous message is the standard output
> and standard error of one of the cron commands.
>
> What could be wong?

Have you tried running the command from the shell ? Have you also
tried putting the command into file and calling that from cron instead
?

Steve



Relevant Pages

  • Re: Making a 1:1 copy of a CD in CD-Creator
    ... I ran CDRDAO from the command line. ... You need to use "2>&1 | more" on the command line to redirect standard error to standard output, which can then be piped anywhere. ... I'll agree, however, for commands that aren't designed to produce anything that can be piped out of stdout it is exceedingly irritating that their messages wind up on stderr. ...
    (comp.os.os2.apps)
  • 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: nohup
    ... i am not sure about this command. ... standard output or standard error - the '>outputfile' would redirect ... standard output to 'outputfile', and the '2>&1' would redirect standard ...
    (comp.unix.aix)
  • Re: stdin UND stderr umleiten: Wo liegt hier der Fehler?
    ... | Note that the order of redirections is significant. ... | directs both standard output and standard error to the file dirlist, ... | while the command ...
    (de.comp.os.unix.shell)
  • Re: Using the shutdown command from a VT other than the console
    ... > I'm trying to cron a computer restart and I've put the command ... The previous message is the standard output ... > I don't know what to let the shutdown command working from another VT... ...
    (comp.unix.solaris)