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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running 2 Sessions at same time

Status
Not open for further replies.

CableGuy2004

Programmer
Aug 23, 2003
2
US
I'm trying to run multiple sessions of extra when running
a macro, When I open a second session stops the other macro. Is their a vb script or anytype of script that I can edit into the macro file to help let me run more then
run macro ?


Jeff
 
I think that only 1 macro can be running in Attachmate. You can connect to sessions with VB, but I don't know how that would affect the other sessions/macros.

calculus
 
It is possible to run multiple macros with Attachmate on the same desktop, but is really complicated.

You must reference your sessions by name. Or pass the session name to the macro. We are using a web interface that calls "<path>\ebrun.exe" "<path>macro.ebm". And Passes the session name via the command line. (not my magic, I will elaborare when I understand more thorougly)

Any Global variables must not exist in the other macro. It is safest to use all local and pass them back and forth.

The MUCH EASIER solution for us, we set up a Windows Server, then open a Terminal service(TS) session and start the session and macro there. You can run as many macros as you can open sessions. If you close the session window you can rejoin that same indexed session next time you use TS to connect. Std licensing only allows for 2 terminal service sessions, but with a Terminal Service license you could do 100's. Each desktop has its own operating buffer, so there are no variable conflicts, and no need to define a session name to the macro. I can use the same session file and macro file in all the sessions.

I hope this is helpful
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top