Jump to content

StdinWrite, StdoutRead between independent scripts


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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