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:
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
begin:vcard
fn:Fredric Fredricson
n:Fredricson;Fredric
org:Ln4 Solutions AB
email;internet:Fredric.Fredricson@xxxxxxxxxxxxx
title:CTO
tel;home:+46 8 91 64 39
tel;cell:+46 70 677 58 48
version:2.1
end:vcard
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general