Search Postgresql Archives

Re: Execute Shell script after insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!!!


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux