Question
· Sep 8, 2017

run a cache terminal script from cmd/ batch.

Hello everyone, I'm trying to run a cache terminal script from cmd/ batch.
I run it like this C:\MyCache\bin#cterm.exe C:\Users\Me\Desktop\cache_scrip.scr
The command opens a terminal, but nothing happens, no title present, no log file written, no output, it's just stucked.
Here is my script:

case match: off
title MyTitle
; wait for the terminal to initialize and ask for our identification
echo: on
wait for:Username
send: MeUser<CR>
wait for:Password
send: mepass<CR>
logfile: C:\Users\Me\Desktop\cache_script.log
pause:10
send: znspace "ME_NAMESPACE"<CR>
wait for:ME_NAMESPACE>
send: do ##class(Me.MeMethod).UpdateRecordForCustomerId(1)<CR>
pause:30
send: do ##class(Me.MeMethod).UpdateRecordForCustomerId(2)<CR>
pause:30
send: do ##class(Me.MeMethod).UpdateRecordForCustomerId(3)<CR>
pause:30
; finish the session
send: <CR>
closelog
; finished
terminate

Thank you for your help

Discussion (8)2
Log in or sign up to continue