ntm Posted December 21, 2007 Share Posted December 21, 2007 Hi - any help with the issue outlined below would be gratefully received! I am using a PowWeb server to run a (self-written) mailing list manager, which includes a script to process e-mails in the background (even if the user navigates to a different page or logs out). The script that runs in the background is triggered by using exec(), and the backgrounding works flawlessly. However, the script will sometimes break off and execution will cease. There is never an error message when this occurs. In order to track this down further, I have written a number of scripts and just left them to run in the background. Sometimes they complete successfully, sometimes they do not, and it is simply not clear to me why that should be the case. This occurs independently of how set_time_limit() is set, and also occurs if one uses ignore_user_abort() instead of exec(). As ever, there are no error messages when the scripts terminate. I would be grateful for any sort of help or suggestions whatsoever - I am completely out of ideas, but really need to get these scripts working! Will. Quote Link to comment https://forums.phpfreaks.com/topic/82731-php-scripts-die-randomly/ Share on other sites More sharing options...
revraz Posted December 21, 2007 Share Posted December 21, 2007 Have you tried Powweb's forum or tech support? Quote Link to comment https://forums.phpfreaks.com/topic/82731-php-scripts-die-randomly/#findComment-420777 Share on other sites More sharing options...
ntm Posted December 21, 2007 Author Share Posted December 21, 2007 Have you tried Powweb's forum or tech support? Yes, but only just now, so no response as yet - I was wondering whether this was likely to be something I don't know about executing scripts for long periods of time (in which case I might get a response here), or whether it was more likely to be something to do with how PW set up PHP (in which case I'd have to hope they could give me an answer). Will. Quote Link to comment https://forums.phpfreaks.com/topic/82731-php-scripts-die-randomly/#findComment-420778 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.