User bio
404 bio not found
Member since Jul 13, 2017
Posts:
Replies:
Alexi Demetriou · Feb 28, 2019 go to post

Good afternoon Roger,

Thank you so much for your time writing this! I will see if I can liaise a time to perform this as it will be on the Live production. Will I also need to shut down the mirror instance too? I would imagine so as it will still lock the Cache.dat file.

I had no idea that the Compact/Truncate option would cause such problems on that version, and it certainly explains why it refuses to run.

Many thanks and kind regards, Alexi Demetriou

Alexi Demetriou · Jan 31, 2019 go to post

Good afternoon Erik,

Thank you for your response, it is nice to hear from you. I have booted up the Ccontrol help, however I am still having some problems marrying the batch file with the code. My previous shutdown script uses different syntax, and when I try to run the commands from within the cache terminal it does not recognise the command. I am definitely going wrong somewhere with my syntax.

I am also using the following as a reference:

https://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls…

Is there a different guide on how best to go about this programming at all?

Many thanks and kind regards, Alexi Demetriou

Alexi Demetriou · Nov 29, 2018 go to post

As per Dmitry's comment, the correct code was set res=$zf(-2, "Z:\Scripts\shutdown.bat") to run the batch script. In order for this to work, you need to directly reference the folder you run the script from. In my case it was start /W Drive:\Folder\ccontrol stop NAMESPACE.

Be cautious when using this.

Certifications & Credly badges:
Alexi has no Certifications & Credly badges yet.
Followers:
Alexi has no followers yet.
Following:
Alexi has not followed anybody yet.