View Single Post
Old 12-02-2016, 09:17 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,635
Hi cgkas,

Perhaps you need to add a WaitForString() after you send the command(s) because it could be exiting the For Loop and turning off logging before the command completes.

    crt.Screen.Send "some command" & a(i) & ";" & Chr(13)  'Some command sent to each arr element, this part works fine
    crt.Screen.WaitForString "shell_prompt"
That worked for me, resulting in three log files with the output from a command in each.

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote