pkrtech Posted August 25, 2006 Share Posted August 25, 2006 I am using[code]exec( 'wget http://www.test.com/run.php > /dev/null &' ); [/code] to run a background process being called from a php page, it runs fine. However everytime it runs it places a empty run.php.1, run.php.2 ect ect. Now the script can run like 25 times an hour so thats alot of files I have to delete to clean up.Is there some way to make it so it doesnt add the file ? Quote Link to comment Share on other sites More sharing options...
trq Posted August 25, 2006 Share Posted August 25, 2006 This will download the file once, then for each additional hit, will rewrite to that same file.[code=php:0]exec( 'wget -r http://www.test.com/run.php > /dev/null &' );[/code] Quote Link to comment 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.