running external programs

Started by kmover 19 years ago3 messagesgeneral
Jump to latest
#1km
km@mrna.tn.nic.in

Hi all,

Is it possible in a PLSQL function to call an external program/script residing at /usr/bin and return the result ?

are there any workarounds for this sort of a problem ?

regards,
KM

#2Tony Caduto
tony_caduto@amsoftwaredesign.com
In reply to: km (#1)
Re: running external programs

km wrote:

Hi all,

Is it possible in a PLSQL function to call an external program/script residing at /usr/bin and return the result ?

are there any workarounds for this sort of a problem ?

regards,
KM

You can do it with a PLperl function.
You would have to use the untrusted PLperlu though.

--
Tony Caduto
AM Software Design
http://www.amsoftwaredesign.com
Home of PG Lightning Admin for Postgresql
Your best bet for Postgresql Administration

#3Uwe C. Schroeder
uwe@oss4u.com
In reply to: km (#1)
Re: running external programs

On Tuesday 07 November 2006 10:55, km wrote:

Is it possible in a PLSQL function to call an external program/script
residing at /usr/bin and return the result ?

No, because plsql is a trusted language.
You can't run external commands from such a language.

Is that a deciding criteria for a language to be flagged trusted or not ?

besides other reasons, yes.

UC

--
Open Source Solutions 4U, LLC 1618 Kelly St
Phone: +1 707 568 3056 Santa Rosa, CA 95401
Cell: +1 650 302 2405 United States
Fax: +1 707 568 6416