X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 81B7430DF6D for ; Tue, 10 Jun 2003 10:31:12 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 68304-03 for ; Tue, 10 Jun 2003 07:31:02 -0300 (ADT) Received: from mail1.nurse.ie (unknown [212.147.131.17]) by svr1.postgresql.org (Postfix) with SMTP id C9DD430DE7E for ; Tue, 10 Jun 2003 07:31:00 -0300 (ADT) Received: (qmail 14984 invoked from network); 10 Jun 2003 10:06:56 -0000 Received: from unknown (HELO zafar) (202.163.94.125) by mail1.nurse.ie with SMTP; 10 Jun 2003 10:06:55 -0000 Message-ID: <01bf01c32f3d$264eb9f0$6500a8c0@f3.f3.net> From: "zafar rizvi" To: Subject: pg_dump mail problem Date: Tue, 10 Jun 2003 15:43:30 +0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200306/106 X-Sequence-Number: 9097 hi sir i am using postgres on linux 7.2. i am trying to get backup of databases from postgtres throuhg shell script. i installed the postgres as default installation. and login as > su postgres psql mails so now problem is that when i am writing a shell script, that script must postgres user to run bcz postgres can get the backup of database. when i start shell script it comes out from shell scipt to prompt where i specify pg_dump ??? > then got error..... so plz give me little idea how can i do it with shell script, as i have test it manually but it works fine in manual checking. waiting for ur reply; thanks zfar