On 10/25/2010 01:19 PM, David W Noon wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1On 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 errorI 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: Fredric_Fredricson.vcf>>
-- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general