exec format
am 29.09.2005 00:00:20 von enzo venegas palacios
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 i=
s:
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=E9vate una PS2 two: http://juegos.ya.com/consolas_y_pc/2005/09/c=
oncurso-ps2.html
Ya.com ADSL 2MB + Llamadas 24 horas: desde 26,95 =80/mes + IVA. Navega y ha=
bla 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
Re: exec format
am 29.09.2005 10:50:42 von Christopher Kings-Lynne
You have to set the PGPASSWORD environmental variable using setenv() or=20
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 ");
>=20
> Here the variable is supposed q happens well, but the correct instructi=
on is:
>=20
> Exec (" C:\Program Files\PostgreSQL\8.0.0-rc2\bin \> pg_dump-i - or - o=
r
> postsgres -Fc-b-v-f "c:\path\res" .$name. ".backup" name_db");
>=20
> And here it throws the mistake to me, it q am trying to do it is to exe=
cute
> pg_dump from php, any idea in the matter, thank you
> enzo
> ---------------------------------------------------------
> Juega y ll=E9vate 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 =80/mes + IVA. Navega =
y habla de forma ilimitada. Sin compromiso de permanencia. http://acceso.=
ya.com/ADSLllamadas/2mb
>=20
> ---------------------------(end of broadcast)--------------------------=
-
> TIP 4: Have you searched our list archives?
>=20
> http://archives.postgresql.org
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq