Re: Executing a shell command from a PG function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Michael and Jaime. The pg/sh thing is probably what I was looking for.
Tnx


Michael Fuhr wrote:

On Sat, Dec 10, 2005 at 04:55:56PM +0100, Yves Vindevogel wrote:
Is it possible to run a shell script, passing values of fields to it, in a Postgres function ?

Not directly from SQL or PL/pgSQL functions, but you can execute
shell commands with the untrusted versions of PL/Perl, PL/Tcl,
PL/Python, etc.  There's even a PL/sh:

http://pgfoundry.org/projects/plsh/


begin:vcard
fn:Yves Vindevogel
n:Vindevogel;Yves
org:Implements
adr:;;Kempische Steenweg 206;Hasselt;;3500;Belgium
email;internet:yves.vindevogel@xxxxxxxxxxxxx
tel;work:+32 (11) 43 55 76
tel;home:+32 (11) 43 55 76
tel;cell:+32 (478) 80 82 91
x-mozilla-html:TRUE
url:http://www.implements.be
version:2.1
end:vcard


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux