you could try creating a perl function
CREATE OR REPLACE FUNCTION "public"."system" (cmd
varchar) RETURNS text AS
$body$ return `$_[0]`; $body$ LANGUAGE 'plperlu' VOLATILE CALLED ON NULL INPUT SECURITY INVOKER; then using it in this way
sql = 'select system(
'
|| ' ''/home/iv_fmaster/bin/main_wms 99 ' || new.iddocsalida || ''' )'; select dblink_exec('paso_lx',sql,TRUE) into ifres; cheers mike stanton
__________ Información de ESET NOD32 Antivirus, versión de la base de firmas de virus 6208 (20110614) __________ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com |