For Executing shell commands with timeout(milliseconds). Returns stdout and stderr as table of varchar2
Returns varchar2 collection (varchar2_table)
Input params
- pCommand - string with command
- timeout - timeout after which command interrupts(milliseconds)
Change to your locale in xt_shell.jsp(lines #24-27) and execute scripts in this order:
- @varchar2_table.tps
- @xt_shell.jsp
- @XT_SHELL.spc
declare
output varchar2_table;
begin
output:=xt_shell.shell_exec('/bin/ls -l',100);
for c in output.first..output.last loop
dbms_output.put_line(output(c));
end loop;
end;
select * from table(xt_shell.shell_exec('/bin/ls -l',100))