[CentOS] difference between cron and shell invocation.
Les Mikesell
lesmikesell at gmail.comTue Dec 7 15:54:42 UTC 2010
- Previous message: [CentOS] difference between cron and shell invocation.
 - Next message: [CentOS] display issue after installing centos 5.5 on hp probook 4420s
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
 
On 12/7/10 9:21 AM, James B. Byrne wrote:
> Question.  In a chained cron job like this:
>
> sshfs  .  .  .&&  /usr/bin/rsync .  .  . | /bin/mail -s .  .  .&&  .
>   .  .
>
> Is there anyway to get a failure message from the first part to be
> emailed or logged?
>
> Given the resolution of this problem I gather that sshfs must not
> have been found and therefore I would expect an error to be reported
> somewhere.  The chained commands evidently interfered with the
> propagation of this error which would have immediately identified
> the source of the problem. Is it possible to get errors from the
> individual parts of such chained commands forwarded to an email
> address, or logged in the system log, or both?
Cron should default to mailing anything sent to stdout or stderr to the owner of 
the job if you don't redirect it elsewhere.
-- 
   Les Mikesell
    lesmikesell at gmail.com
  - Previous message: [CentOS] difference between cron and shell invocation.
 - Next message: [CentOS] display issue after installing centos 5.5 on hp probook 4420s
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
 
More information about the CentOS mailing list