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: Reidy, Ron <Ron.Reidy_at_arraybiopharma.com>
Date: Fri, 15 Dec 2006 07:32:45 -0700
Message-ID: <7209E76DACFED9469D4F5169F9880C7A6751F7@mail01bldr.arraybp.com>


Use extproc C routines for this.

--

Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of David Moss Sent: Friday, December 15, 2006 2:28 AM
To: Oracle-L_at_freelists.org
Subject: Use of host command from scripted SQL

Hello,

I was playing around with SQL*Plus and found that I could include the host command in my scripts, being a UN*X person I styarted trying to get the result of some simple commands (pwd, ls, grep, etc) back into SQL, but got no joy.

What I'm trying to do is something like:

DEFINE my_var = HOST pwd;

Or

SELECT (HOST pwd) FROM dual;

Or somesuch... Is there a way to do this?

Thnks,

David.

This message is confidential and is intended for the addressee only; unless clearly stated that this disclaimer should not apply, this e-mail is not intended to create legally binding commitments on behalf of FDM Group Plc, nor do its contents reflect the corporate views or policies of FDM. Any unauthorised disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately.



This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk

--

http://www.freelists.org/webpage/oracle-l

This electronic message transmission is a PRIVATE communication which contains information which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. Please notify the sender of the delivery error by replying to this message, or notify us by telephone (877-633-2436, ext. 0), and then delete it from your system.

--

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

Original text of this message

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