ladylynn
Member
Posted 6 years ago #
At least, I think that's what they are. I've got a cron job set up to check mail every half hour (for Audioblogging), and I just noticed over fifty numbered wp-mail.php files in my root directory. Are these output files? And is it okay to delete them? And finally, is there something I can do to stop them?
I'm not exactly sure what other info you might need for me...I'm using WP 1.5.1.2, if that helps.
Lynn
What are the contents of the fifty numbered files? I've not heard of that happening before.
ladylynn
Member
Posted 6 years ago #
Sorry for the delay -- I just happened to see your response, Skippy. Most of them read "There doesn't seem to be any new mail". Is there anything I can do to stop them from saving? Or do I just need to go in and delete them periodically?
If you're using a real cron job, you can try modifying your crontab entry to redirect standard output to /dev/null. My guess is that cron is capturing stdin and saving it for you.
ladylynn
Member
Posted 6 years ago #
You'll have to pardon me; I'm not really knowledgeable on these things. The cron job is set up through cpanel--I assume that's what you mean by a real cron job.
I did try adding /dev/null to the end of the command, but I must have entered it wrong, as they're still saving to my directory. I've just deleted the old cron job and set up a new one. I'll see if that works.
Yes, CPanel cron jobs should be "real" cron jobs.
Output redirection involves more than just putting /dev/null at the end of your script. Try &> /dev/null at the end.
See here for a more in-depth tutorial.
ladylynn
Member
Posted 6 years ago #
Thanks, Skippy. I'll give that a shot.
ladylynn
Member
Posted 6 years ago #
Finally got it fixed! Haven't had a wp-mail.php file save to my root directory all day. Thanks for all your help, Skippy.