Re: calling a shell script from pl/pgsql

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: Jeff Barrett <jbarrett(at)familynetwork(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: calling a shell script from pl/pgsql
Date: 2001-09-10 17:51:55
Message-ID: 20010910125155.A21086@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

* Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> [010910 12:37]:
> On Mon, 10 Sep 2001, Jeff Barrett wrote:
>
> > How can I call a shell script from within a pl/pgsql function that is called
> > as from a trigger. I do not want to interact with the script I just want it
> > to run. I do want the trigger to wait for the script it called to complete
> > before returning a value.
> >
> > Any ideas would be greatly appreciated.
>
> I don't think you can do that from within pl/pgsql. You'd probably need a
> function in pl/tclu or c.
You can also look at Peter Eisentraut's PL/sh, but there are
portability issues with it:

I can't seem to find the correct page at the moment, but it's out
there.

LER

>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Alex Pilosov 2001-09-10 18:17:19 pl/sh (was Re: calling a shell script from pl/pgsql)
Previous Message Stephan Szabo 2001-09-10 17:22:35 Re: calling a shell script from pl/pgsql