Forums

[resolved] Lots of wp-mail.php output files? (9 posts)

  1. 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

  2. Mark (podz)
    Support Maven
    Posted 6 years ago #

    You may want to check Skippy's plugin:
    http://www.skippy.net/blog/2005/05/26/plugin-wp-cron/

  3. skippy
    Member
    Posted 6 years ago #

    What are the contents of the fifty numbered files? I've not heard of that happening before.

  4. 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?

  5. skippy
    Member
    Posted 6 years ago #

    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.

  6. 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.

  7. skippy
    Member
    Posted 6 years ago #

    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.

  8. ladylynn
    Member
    Posted 6 years ago #

    Thanks, Skippy. I'll give that a shot.

  9. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic