Jump to content

Recommended Posts

Posted

Having played with StdinWrite and StdoutRead, I understand these can only read an write into a child process. What if I wanted to read or write to the handle (ProcessID) of an executable invoked by independeant scripts?

Scenario:

-Script A starts an SSH session by calling plink

-Script B gets the PID from A, and reads and writes to the plink handle

-A and B are totally independent scripts

Dont think this is possible, but who knows someone has a clever trick to pull this off.

Cheers.

Posted

Thanks for the reply. However in your response one compiled script is a child of another other script. I was looking for a way to have independent scripts sends messages to each other's 'stdin' by calling their PID.

Cheers.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...