jimlocigno
Programmer
I hope I am explaining this okay. Our shop has a wrapper script so to speak that all production Korn Shell scripts are called under. The wrapper script controls various processing options such as cycle date etc. This all works great EXCEPT when the wrapper script is updated.
This might be ignornace on my part but I would have thought that once a command such as "wrapper.ksh myscript.ksh" is entered the code for wrapper.ksh would be stored in memory some place. I believe it is logical after that to assume that any updates to wrapper.ksh would not affect running processes.
However, I am beginning to think my logic is incorrect because invariably when wrapper.ksh is updated SOME (but not all) running processes abort/abend. Those processes are restarted and run fine.
This all leads me to believe that Korn Shell scripts are never "cached" or at least not all of it is kept in memory.
So my questions are:
1) Am I correct about Korn Shell scripts not "being" cached and therefore when wrapper.ksh is updated, running processes could well get confused?
2) If #1 is true, is there anyway of writing wrapper.ksh so that it can be updated and NOT effect running processess.
In our shop it is not feasible to wait until all processes using wrapper.ksh stop.
Thanks for the help.
Jim Locigno
This might be ignornace on my part but I would have thought that once a command such as "wrapper.ksh myscript.ksh" is entered the code for wrapper.ksh would be stored in memory some place. I believe it is logical after that to assume that any updates to wrapper.ksh would not affect running processes.
However, I am beginning to think my logic is incorrect because invariably when wrapper.ksh is updated SOME (but not all) running processes abort/abend. Those processes are restarted and run fine.
This all leads me to believe that Korn Shell scripts are never "cached" or at least not all of it is kept in memory.
So my questions are:
1) Am I correct about Korn Shell scripts not "being" cached and therefore when wrapper.ksh is updated, running processes could well get confused?
2) If #1 is true, is there anyway of writing wrapper.ksh so that it can be updated and NOT effect running processess.
In our shop it is not feasible to wait until all processes using wrapper.ksh stop.
Thanks for the help.
Jim Locigno