Jump to content
Sign in to follow this  
kiboost

send a string to another script

Recommended Posts

kiboost

Hi,

I would like to know where to look at to have scripts communicating. I've check tcp and udpsend but maybe there is something more efficient and reliable. Basicaly I have a script_A running, doing some stuff, and sometimes I would have another script_B telling script_A to do something.

Another step would be to have script_A on one machine, and script_B on another one ! I ever use psexec, I know the session id of the user etc, and just would like to discuss between scripts without having to write in a txt file and the other to read this txt file, would be cumbersome for just a command or two per day. The first intend of script_A is not this, so it must be cpu low.

Thanks


Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79

Share this post


Link to post
Share on other sites
Ramzes

TCP/IP is the best way to communication between two machines. Search for server - client examples.

To send string from script A to script B you can use i. e. or

Edited by Ramzes

Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font]

Share this post


Link to post
Share on other sites
Beege

Yashied also has one to . And trancexx has one called that works very well.

Edited by Beege

Share this post


Link to post
Share on other sites
kiboost

Thanks both ! I have it working with mailslot, this UDF is really so simple to implement and powerfull !


Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79

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  

×