Re: What is "return code" for WAL send command
От | Fredric Fredricson |
---|---|
Тема | Re: What is "return code" for WAL send command |
Дата | |
Msg-id | 4CC5C548.4050704@bonetmail.com обсуждение исходный текст |
Ответ на | Re: What is "return code" for WAL send command (David W Noon <dwnoon@ntlworld.com>) |
Ответы |
Re: What is "return code" for WAL send command
|
Список | 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
Вложения
В списке pgsql-general по дате отправления: