Hello,
I have a simple script set to run at schedule time, the 1st command in the script is to kill the current process running if there is any, then the 2nd is to rerun it fresh. However, when I put this script to run as cron, it complains that not enough stack, and suggest a new number,
So, I increase the stack big enough per suggestion, it does not work either, some how, I come up with idea to divide the script into 2 seperate scripts:
- the first script is only to kill the current process if there is any.
- the 2nd script is to rerun it freshly
And this, I don't have any issue. Why?
I thought I already increase stack per suggestion, but it still does not like it.
Thanks
I have a simple script set to run at schedule time, the 1st command in the script is to kill the current process running if there is any, then the 2nd is to rerun it fresh. However, when I put this script to run as cron, it complains that not enough stack, and suggest a new number,
So, I increase the stack big enough per suggestion, it does not work either, some how, I come up with idea to divide the script into 2 seperate scripts:
- the first script is only to kill the current process if there is any.
- the 2nd script is to rerun it freshly
And this, I don't have any issue. Why?
I thought I already increase stack per suggestion, but it still does not like it.
Thanks