X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9F406D9B69 for ; Thu, 29 Sep 2005 05:50:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27002-10 for ; Thu, 29 Sep 2005 08:50:40 +0000 (GMT) Received: from houston.familyhealth.com.au (houston.au.fhnetwork.com [203.22.197.21]) by svr1.postgresql.org (Postfix) with ESMTP id 9B79CD9B21 for ; Thu, 29 Sep 2005 05:50:40 -0300 (ADT) Received: from houston.familyhealth.com.au (localhost [127.0.0.1]) by houston.familyhealth.com.au (Postfix) with ESMTP id 0952424FFF; Thu, 29 Sep 2005 16:50:42 +0800 (WST) Received: from [127.0.0.1] (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (Postfix) with ESMTP id 280D924FF7; Thu, 29 Sep 2005 16:50:41 +0800 (WST) Message-ID: <433BAAE2.4000104@familyhealth.com.au> Date: Thu, 29 Sep 2005 16:50:42 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: enzovenegas@mixmail.com Cc: "pgsql-php@postgresql.org" Subject: Re: exec format References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-familyhealth-MailScanner-Information: Please contact the ISP for more information X-familyhealth-MailScanner: Found to be clean X-familyhealth-MailScanner-From: chriskl@familyhealth.com.au X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.061 required=5 tests=[AWL=0.011, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/28 X-Sequence-Number: 3268 You have to set the PGPASSWORD environmental variable using setenv() or whatever it's called in PHP before calling exec(). Check the phpPgAdmin datadump.php file to see how it's done. Chris enzo venegas palacios wrote: > hi, I am trying to execute a line of commands of DOS and need to put "" > inside the sequence, for the format of the instruction exec it does not > leave me, someone can solve like this > Ej: > Exec (" C:\Program Files\PostgreSQL\8.0.0-rc2\bin \> pg_dump -i - or - or > postgres -Fc-b-v-f c:\path\res " .$name. ".backup name_db "); > > Here the variable is supposed q happens well, but the correct instruction is: > > Exec (" C:\Program Files\PostgreSQL\8.0.0-rc2\bin \> pg_dump-i - or - or > postsgres -Fc-b-v-f "c:\path\res" .$name. ".backup" name_db"); > > And here it throws the mistake to me, it q am trying to do it is to execute > pg_dump from php, any idea in the matter, thank you > enzo > --------------------------------------------------------- > Juega y llévate una PS2 two: http://juegos.ya.com/consolas_y_pc/2005/09/concurso-ps2.html > Ya.com ADSL 2MB + Llamadas 24 horas: desde 26,95 €/mes + IVA. Navega y habla de forma ilimitada. Sin compromiso de permanencia. http://acceso.ya.com/ADSLllamadas/2mb > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org