Re: What is "return code" for WAL send command - Mailing list pgsql-general

From Fredric Fredricson
Subject Re: What is "return code" for WAL send command
Date
Msg-id 4CC5C548.4050704@bonetmail.com
Whole thread Raw
In response to Re: What is "return code" for WAL send command  (David W Noon <dwnoon@ntlworld.com>)
Responses Re: What is "return code" for WAL send command
List pgsql-general
  On 10/25/2010 01:19 PM, David W Noon wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, 25 Oct 2010 09:49:02 +0200, Fredric Fredricson wrote abour Re:
> [GENERAL] What is "return code" for WAL send command:
>
>>   On 10/23/2010 02:01 PM, zhong ming wu wrote:
> [snip]
>>> For some reason it failed recently with "return codes 32512" and I
>>> couldn't find this num. as a valid rsync exit code
>>>
>>> During the time that the error was going on I tried the rsync
>>> command manually and didn't error
>>>
>> I guess you have fallen into the common pitfall that cron does not
>> read bash ini files and does not set the $PATH variable. If you want
>> your scripts to be run by cron you must make them independent of $PATH
>> and other variables set by .bashrc etc.
> One can also specify environment variables at the top of the crontab.
> This overcomes the issue of cron jobs not reading /etc/profile and
> other start-up scripts that are processed by a normal login shell.  For
> example, here is my personal crontab:
Ah, yes of course, It was a while ago I played with cron.
"man 5 crontab" is also a good command to know, or
"info crontab" if you prefer those modern inventions.

/Fredric


Attachment

pgsql-general by date:

Previous
From: DM
Date:
Subject: Re: Query precision issue
Next
From: Alexey Luchko
Date:
Subject: replication on win32/64