| От | Richard Huxton |
|---|---|
| Тема | Re: Stored Procedures for Shell Execution |
| Дата | |
| Msg-id | 200206181445.52492.dev@archonet.com обсуждение исходный текст |
| Ответ на | Stored Procedures for Shell Execution ("Dustin Dortch" <dustin_dortch@earthlink.net>) |
| Список | pgsql-general |
On Monday 17 Jun 2002 2:06 pm, Dustin Dortch wrote: > Is there a stored procedure that > allows for the execution of shell commands? I think it would be great. > What I would like to accomplish is when a customer is added to my CRM > application, a script is executed on my shell. Obviously, I woud need to > create a trigger on my user table and have it run a stored procedure, etc. You *could* do this, see the manuals about adding a 'C' function to PostgreSQL. However, a better way might be to LISTEN on a connection for a NOTIFY from your trigger. This means rather than your database running a program with it's privileges it just states that something has happened and your unprivileged client can then decide what to do. - Richard Huxton
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера