Sign in to follow this  
Followers 0
kingkaj

StdinWrite, StdoutRead between independent scripts

3 posts in this topic

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.

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0