Written by

Question Raouf Besbes · Feb 21, 2018

Accessing Caché from windows Command line terminal

Hi,

I would like to know if it is possible to use windows command line , instead of Intersystems Terminal , to connect to Caché and do objectscript commands or  SQL requests  as a client. 

Thank you for your help

Comments

Dmitry Maslennikov · Feb 21, 2018

you can use cterm.exe for this task, so, you can run some script, or routine in Cache

or just run cache.exe directly. 

Microsoft Windows [Version 10.0.16299.248]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\Admin>c:\intersystems\ensemble\bin\cache.exe -sc:\intersystems\ensemble\mgr\

Node: DESKTOP-4IDCEJ0, Instance: ENSEMBLE

USER>

0
Raouf Besbes  Feb 21, 2018 to Dmitry Maslennikov

Great!
Thank you very much Dmitry

0
Konstantin Terekhov  Mar 4, 2020 to Dmitry Maslennikov

File cache.exe does not exist.

How to do the same in the case of IRIS?

0
Dmitry Maslennikov  Mar 4, 2020 to Konstantin Terekhov

you have two options, instead of cache.exe use irisdb.exe

or use command iris terminal <instancename>

0
Konstantin Terekhov  Mar 4, 2020 to Dmitry Maslennikov

Thank you, Dmitry. But response from irisdb not readable (I am from Russia). 
chcp 1251 not help.
How force IRIS talk on english ?
 

╨Ч╨░╨│╤А╤Г╨╖╨║╨░ ╨┤╨╕╤А╨╡╨║╤В╨╛╤А╨╕╨╕ ╨╜╨░╤З╨░╨╗╨░╤Б╤М ╨▓ 03/04/2020 12:48:53

╨Ю╨и╨Ш╨С╨Ъ╨Ф╨╕╤А╨╡╨║╤В╨╛╤А╨╕╤П 'D:\?раб?тка\05-Cache and Git\\source\cls' ╨╜╨╡ ╤Б╤Г╤Й╨╡╤Б╤В╨▓╤Г╨╡╤В.
╨Ю╨▒╨╜╨░╤А╤Г╨╢╨╡╨╜╨╛ 1 ╨╛╤И╨╕╨▒╨╛╨║ ╨▓╨╛ ╨▓╤А╨╡╨╝╤П ╨╖╨░╨│╤А╤Г╨╖╨║╨╕.
IMPORT STATUS: ╨Ю╨и╨Ш╨С╨Ъ╨Ф╨╕╤А╨╡╨║╤В╨╛╤А╨╕╤П 'D:\?раб?тка\05-Cache and Git\\source\cls' ╨╜╨╡ ╤Б╤Г╤Й╨╡╤Б╤В╨▓╤Г╨╡╤В

0