Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 1AD902E002D for ; Fri, 18 Apr 2008 03:25:52 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 44590-08 for ; Fri, 18 Apr 2008 03:25:49 -0300 (ADT) X-Greylist: delayed 00:07:05.985748 by SQLgrey-1.7.5 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by developer.postgresql.org (Postfix) with ESMTP id 167E22E0042 for ; Fri, 18 Apr 2008 03:25:47 -0300 (ADT) Received: by fg-out-1718.google.com with SMTP id 22so340659fge.23 for ; Thu, 17 Apr 2008 23:25:46 -0700 (PDT) Received: by 10.86.28.5 with SMTP id b5mr4495445fgb.79.1208499520079; Thu, 17 Apr 2008 23:18:40 -0700 (PDT) Received: from ?10.0.0.12? ( [85.117.32.62]) by mx.google.com with ESMTPS id z40sm16566243ikz.4.2008.04.17.23.18.37 (version=SSLv3 cipher=RC4-MD5); Thu, 17 Apr 2008 23:18:39 -0700 (PDT) Message-ID: <48083D3B.1070302@mysoft.ge> Date: Fri, 18 Apr 2008 10:18:35 +0400 From: David Jorjoliani User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Phillip Smith , pgsql-admin@postgresql.org Subject: Re: Database update problem from crontab on ubuntu server References: <003501c8a0f8$55885230$9b0014ac@wbaus090> In-Reply-To: <003501c8a0f8$55885230$9b0014ac@wbaus090> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200804/192 X-Sequence-Number: 28956 I tried with full paths: su -l postgres -c "/bin/gunzip -c /backup/rms.gz | /usr/lib/postgresql/8.2/bin/psql rms" su -l postgres -c "/bin/gunzip -c /backup/rms.gz | /usr/bin/psql rms" su -l postgres -c "/bin/zcat /backup/rms.gz | /usr/lib/postgresql/8.2/bin/psql rms" su -l postgres -c "/bin/zcat /backup/rms.gz | /usr/bin/psql rms" same result when it running trough cronjob. Manually everything is fine. Even I put this commands (without su -l ...) in postgres user crontab, but same result. Server is ubuntu 64bit. Does it makes any difference from 32bit in terms of crontab functionality? Thanks, David Phillip Smith wrote: >> su -l postgres -c "gunzip -c /backup/rms.gz | psql rms" >> > > You could also try: > /bin/zcat /backup/rms.gz | /usr/local/postgres/bin/psql rms > > > THINK BEFORE YOU PRINT - Save paper if you don't really need to print this > > *******************Confidentiality and Privilege Notice******************* > > The material contained in this message is privileged and confidential to > the addressee. If you are not the addressee indicated in this message or > responsible for delivery of the message to such person, you may not copy > or deliver this message to anyone, and you should destroy it and kindly > notify the sender by reply email. > > Information in this message that does not relate to the official business > of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. > Weatherbeeta, its employees, contractors or associates shall not be liable > for direct, indirect or consequential loss arising from transmission of this > message or any attachments > e-mail. > >