What is the best way run a shell script from a stored procedure? In
general, what is the best way to run any operating system command and
get a return value?
My environment is Oracle 8 on a Unix box.
Thanks,
Salaam Yitbarek
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
There may be another way which i am not aware of though.
Mark
yit...@statcan.ca wrote in message <7ha43v$jbh$1...@nnrp1.deja.com>...
Another similar way is to run daemons in crontab that watch for flag files.
Oracle backend writes the flag file, which causes the daemon to launch the
process...
Robert Proffitt
Check out PL/SQL external procedures. From what I recall any operating
system command can be invoked as an external procedure. Thus the command:
sqlplus <user>/<password> @<scriptname>
will work.
regards
Jerry Gitomer
-----------------------------------------------
yit...@statcan.ca wrote in message <7ha43v$jbh$1...@nnrp1.deja.com>...
>Hi,
>
>What is the best way run a shell script from a stored procedure? In
>general, what is the best way to run any operating system command and
>get a return value?
>
>My environment is Oracle 8 on a Unix box.
>
>Thanks,
>Salaam Yitbarek
>
>
yit...@statcan.ca wrote:
>
> Hi,
>
> What is the best way run a shell script from a stored procedure? In
> general, what is the best way to run any operating system command and
> get a return value?
>
> My environment is Oracle 8 on a Unix box.
>
> Thanks,
> Salaam Yitbarek
>
> --== Sent via Deja.com http://www.deja.com/ ==--
> ---Share what you know. Learn what you don't.---
--
+-------------------------------+----------------------------------+
| Dyrson Rodrigues Alves Junior | Casa de Software |
| Analista de Sistemas | Oracle Approved Education Center |
| mailto:dyr...@casasoft.com.br | http://www.casasoft.com.br |
+-------------------------------+----------------------------------+