View Single Post
  #2  
Old 12-02-2016, 09:17 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,021
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.

Code:
    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"
  Next
That worked for me, resulting in three log files with the output from a command in each.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote