Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Can a stored procedure execute a unix command?
It's not as gruesome as it sounds; you are in effect rolling your own listener for the UNIX side of things. The PL/SQL documentation provides sample code that should be helpful.
A kluge that MIGHT meed your needs is to use the UTL_FILE package to write to a UNIX file with the command line you want executed, and a simple shell script daemon that periodically executes the command lines in that file and then truncates it with a > until the next cycle. (I said it was a kludge.)
![]() |
![]() |