Re: Execute Shell script after insert - Mailing list pgsql-general

From Andreas Jochem
Subject Re: Execute Shell script after insert
Date
Msg-id 49060A9E.9030700@gmx.de
Whole thread Raw
In response to Execute Shell script after insert  ("Anderson dos Santos Donda" <andersondonda@gmail.com>)
List pgsql-general
You can write the insert into command in a shellscript by using

    #!/bin/bash

    psql -c "INSERT INTO ...." <db_name> -U <username>

    mkdir $1


Anderson dos Santos Donda wrote:
> Is there a way to execute a simple shell script in server after
> execute INSERT INTO ?
>
> Example?
>
> INSERT INTO clients (name) VALUES ('Donda');
>
>
> after it, execute shell : mkdir $1
>
>
>
> Thanks!!!


pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Execute Shell script after insert
Next
From: Sam Mason
Date:
Subject: Re: Execute Shell script after insert