in reply to Not getting the expected result when using eval/alarm

Hi

If you are sure that there is no fork happened in openRemoteSql, there won't be any problem as per the Code.

But still you need to consider about the Operating System what you are using.

Since you have specified that crond I assumed myself as that is linux.

For safer side you can make the "openRemoteSql" to be called from child and get the Pid Status with the alarm time.

That will help to solve your problem

Sometimes It will be like The alaram status will be returned by the time the process would have lost its PID.

That may cause Problem to you.

"Keep pouring your ideas"
  • Comment on Re: Not getting the expected result when using eval/alarm