Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Use of host command from scripted SQL

Re: Use of host command from scripted SQL

From: Mladen Gogala <mgogala_at_verizon.net>
Date: Fri, 15 Dec 2006 09:43:41 -0500
Message-id: <1166193821l.3096l.0l@medo.noip.com>

On 12/15/2006 04:27:41 AM, David Moss wrote:

>
> SELECT (HOST pwd) FROM dual;
>
> Or somesuch... Is there a way to do this?
>
> Thnks,
>
> David.

#!/usr/bin/perl -w
use strict;
use Cwd;
use DBI;
my $pwd=getcwd();

The "use DBI;" line is here so that you can execute SQL commands.

-- 
Mladen Gogala
http://www.mladen-gogala.com

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 15 2006 - 08:43:41 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US