Automatic Run process
Hi All, I want to run the routine automatically when the system gets login.How to do that?
Comments
Look at the article in the documentation named "Customizing Start and Stop Behavior with ^%ZSTART and ^%ZSTOP Routines"
You can write routine %ZSTART.mac in %SYS namespace with some code which will be run during system start, or for every user. Also possible to run some code when server is going to stop, and before finalizing user process.
Could you please share content of this Routine?
Need more information (with examples) on what you're trying to do.
If you're talking about:
1) a user login on Cache, you can start a routine/method on login for a terminal type service. http://docs.
2) Cache startup and other events you can run routine/method. http://docs.
3) many other variations
Tom Fitzgibbon | 9179331226 | gototomAtG...l
Sure,
%ZSTART
S ^TRACE="ZSTART"
S Path="C:\VARATHA\TestCreate.txt"
O Path:"WNS":2
E U 0 W "File Not Open",!
U Path W "TEST",!
C Path
Q
You should read the article in documentation more carefully. You should use some labels, in your case you missed SYSTEM
In this case, it should work properly
%ZSTART
SYSTEM
S ^TRACE="ZSTART"
S Path="C:\VARATHA\TestCreate.txt"
O Path:"WNS":2
E U 0 W "File Not Open",!
U Path W "TEST",!
C Path
Q But I tried to write the Code in ZSTU routine its work fine.
Hi Dmitry and Tom, I have created a new routine in %sys namespace named it as %ZSTART simply set one Global in that routine but when i restart the system it wont be set.Can you please help me am struggling in last two days to proceed further