Script Error [3]

Script Error

Saturday, September 21, 2013 8:49 AM - simon

Dears,

Iam trying to make Script that run 2 session and in every session another script that exc some commad
1st session open the 2 session well but the 2 session got error "Script is already running is another session" and when I press OK it give Session Time Out.

1st session script as follow:
--------------------------------
Sub Main
If xsh.Session.Connected = true Then
xsh.Session.Open "/s C:\scripts\KBLOCK\KBLOCK.VBS\kblockall.xsh"
xsh.Session.Sleep 1000
If xsh.Session.Connected = true Then
xsh.Session.Open "/s C:\scripts\KBLOCK\KBLOCK.VBS\kblockscday.xsh"
xsh.Session.Sleep 1000
End If
End If
end sub

*/ I try the script with and without the Session Sleep

2nd and 3rd session as follow:
---------------------------------------
Sub Main
xsh.Screen.Synchronous = true
xsh.Screen.WaitForString "#"
xsh.Screen.Send "1st command OR 2nd command" & VbCr
End Sub

when I run the 2nd or the 3rd Session alone working fine.

Program Ver. : Xshell 4
Attachment script.png (20.6 KB)  


Re: Script Error

Sunday, September 22, 2013 10:30 PM - Support

This is a limitation of the current version. Only one script file can be run at a time. This will be improved in the next major version.



---
Technical Support


Re: Script Error

Monday, September 23, 2013 1:25 PM - Simon

is there any solution to over ride or workaroud to fix this Problem ?


Re: Script Error

Wednesday, September 25, 2013 2:07 AM - Support

I am afraid this is not possible in the current version. Sorry to bring you bad news. It will be possible in the next major version.


---
Technical Support


Previous views: 140