2014-11-08 22:48
浏览 127


I want to get some data from and API and save for that user in database, this actions takes random times depending on the time and sometimes it takes even 4 hours, I am executing the script using exec and & in the background in php,

My question is that is exec safe for long running jobs, I dont know much about fork,and linux processes etc so I dont know what happened internally on CPU cores,

Here is something I found that confused me,

Can somebody tell me if I am going in right direction with exec?

will the process be killed itself after script completion?


1条回答 默认 最新

相关推荐 更多相似问题