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: Shell scripting question

RE: Shell scripting question

From: hp <hp_at_lechateau.ca>
Date: Fri, 23 Feb 2001 12:38:45 -0800
Message-ID: <F001.002BC4D8.20010223122554@fatcity.com>

check out this link for some info
www.datafocus.com/docs/man1/rexec.1.asp

-----Original Message-----
Sent: Thursday, February 22, 2001 7:36 PM To: Multiple recipients of list ORACLE-L

Forgive me if this a stupid question and unrelated to Oracle but it pulls data from an Oracle database and i hope one of you scripting gurus can help me out ;-) It's on HP-UX 10.20.

I need to find a way within a script to handle a system generated prompt. I'm trying to use the REXEC command to run a batch script on an NT machine from UNIX. I've got the NT side set up with REXECD. When I run the REXEC command from the UNIX prompt, it prompts me for a password (for authentication on the NT machine I suppose). How do I script this process so I do not have to manually type in the password? Here's the command:

rexec nt_machine -l user e:\\top_dir\\ev00_07\\run\\batch_script.bat

after I run it, it prompts for a password; if I type the NT password in for the user, it works fine, so the syntax of the command is correct. I just want to automate this so I can schedule it instead of typing in the password manually.

I know I can use RSH instead and not worry about authentication, but the administrative overhead to get that implemented (security worries, etc) would carry me through to retirement age. I'm sure there is a simple way to do this, but I'm not seeing it. I try not to bother the list with questions if I can help it, but I'm stuck on this one and don't want to throw in the towel.

Thanks!

John Dailey
Consultant
Concept Solutions, LLC
*Your Business Intelligence Partner*
www.concept-solutions.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: John Dailey
  INET: John.Dailey_at_concept-solutions.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: hp
  INET: hp_at_lechateau.ca
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Feb 23 2001 - 14:38:45 CST

Original text of this message

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