Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8184351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:28:22+00:00 2026-06-07T01:28:22+00:00

Context: Oracle Enterprise Manager has a feature to execute host command. If into that

  • 0

Context: Oracle Enterprise Manager has a feature to “execute host command.” If into that feature I enter “dir c:\temp” then the output window echos the command and then shows a directory listing. If into that feature I enter “powershell dir c:\temp” the output window shows only the echo’d command. No directory listing. If on the target machine I enter those two commands in both cases I get the echo’d command followed by a directory listing.

I hypothesize that what I see in the cmd.exe window on the client blends two stdout streams: one from the cmd.exe itself and one from the invoked process (powershell dir c:\temp). The Oracle thing seems to recognize only the cmd.exe’s stdout.

Is there some way I can force the stdout from the invoked process to be in the cmd.exe’s stdout stream so that Oracle will recognize it and the thing I am trying to build will work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:28:23+00:00Added an answer on June 7, 2026 at 1:28 am

    I don’t think you can directly pipe the output from one program back into STDOUT of a parent cmd.exe – assuming that is what Oracle is doing at some level.

    That being said, you could try something clever like the following:

    cmd /c "powershell -Command ""& echo Hello" > %TEMP%\a.txt & TYPE %TEMP\a.txt
    

    Basically this is capturing the output from PowerShell, placing it in a temporary file, then dumping that file back onto STDOUT in cmd.exe. A nice touch would be cleaning up the temp file with a & DEL %TEMP%\a.txt on the end of the command.

    You will probably need to toy around with the command line to account for any quirks in how Oracle is passing things along – my guess is that it is invoking cmd.exe /c directly so you can probably leave that part off.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In context of Oracle 9i database, usually for a view to be created an
We're using a Oracle Text CTXSYS.CONTEXT index to index about half a million rows
Context I'm building a persistence layer to abstract different types of databases that I'll
I am using JPA to access an Oracle database which has its encoding set
I need some help with Oracle's RLS feature. I have never used it before
We have an Oracle database that contains IP addresses stored as decimal integers -
Context I have been debugging an Oracle Weblogic Server 10.3.0.0 JDBC Connection which is
Context We're adding group membership filtering when importing members from an LDAP server into
I am currently trying to validate that an Oracle db_link is actually pointing to
i'm trying to write an Oracle query that sorts the results in the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.