Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aspect procomm

Status
Not open for further replies.

dhuyvo

Technical User
Apr 15, 2003
5
US
Hi there,

Can I run one aspect script for two terminal windows(ex: COM1,COM2) at the same time?
If yes, please show me how.

Thanks
 
The best way to do that is to have a script running in two separate Procomm windows, one for the connection on COM1 and another for the COM2 connection. You can use the set modem connection command in your script to assign the connection for each script (i.e. you will need one separate script for each open window).


aspect@aspectscripting.com
 
Hi Knob.

As you told me, a script A run for open window connected to COM1; a script B run for open window connected to COM2,at the same time; even A.wax and B.wax are the same content.
 
A.wax and B.wax would have the same content, except you would have a different set modem connection command in each script to make sure that Procomm was using the correct connection in each window. Another way to do this would be to have two launcher scripts that each set the correct connection, then they could each execute the same main script (via the chain command) after the environment had been properly set. This could be a little cleaner since you would have to do maintenance on the main script (and likely none ever on the launcher scripts) instead of two separate scripts with mostly identical contents.


aspect@aspectscripting.com
 
If you need to have data from both sessions used in one script there are basically two options:

Have the scripts communicate through Text files which may
have obvious hand-shaking problems.
or
Use DDE to communicate from one session of procomm to the
other.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top