Originally Posted by diemons
Am trying to make it in a single file (say A) and when it exits in middle , will store it to some environment variable(which the Linux unit is aware of globally ). Then , will add a condition in startup process like *.init (not sure) , Example : say (if MEMADDRESS!=0) , "go MEMADDRESS" - which will continue the remaining of the script. Else , Exit the condition. Once the script A gets executed till the end , then we can overwrite MEMADDRESS to 0.
This is my plan. Lets see if this can be worked.
Also , pelase suggest if there's any alternatives.
Note: Am using shell script #!/bin/sh
I don't think I can help directly, but i think I can help other people to better understand.
I think your issue is either very complex and we will need much more detail to understand and find you the solution or you are trying to do it the wrong way.
1- Do you need to do parrallelism between your 2 scripts?
2- Is your server going to reboot in between the execution of the 2 scripts?
3- Why don't you just dump to a file or create a file that define the end status of the first script. (filename: succeed.script.status in /tmp that your second script will test if it exist or not).
Scripting is not compilation language like C, the logic should not be the same and I don't think you should seek to map the memory directly. Scripting is at another level where the OS is handling all the IO.