Received: from spider.pilosoft.com (p55-222.acedsl.com [160.79.55.222]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8AINQ733240 for ; Mon, 10 Sep 2001 14:23:26 -0400 (EDT) (envelope-from alex@pilosoft.com) Received: from localhost (alexmail@localhost) by spider.pilosoft.com (8.9.3/8.9.3) with ESMTP id OAA08833; Mon, 10 Sep 2001 14:24:31 -0400 (EDT) Date: Mon, 10 Sep 2001 14:24:31 -0400 (EDT) From: Alex Pilosov To: Stephan Szabo cc: pgsql-sql@postgresql.org Subject: Re: pl/sh (was Re: calling a shell script from pl/pgsql) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200109/41 X-Sequence-Number: 4687 On Mon, 10 Sep 2001, Stephan Szabo wrote: > > On Mon, 10 Sep 2001, Alex Pilosov wrote: > > > On Mon, 10 Sep 2001, Stephan Szabo wrote: > > > > > 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. > > Or pl/perlu! (Sorry, had to say it). > > I thought perlu was added after 7.1? I considered mentioning it, but > realized that it wouldn't help if it wasn't there yet. Sorry, my fault, I thought pl/tclu is also a new language, but it apparently is in 7.1...Yes, for existing postgres, its pltclu or C, sorry :) -alex