Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2004
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to suppress the cron report when activating a php file.

    I need to use wget with the cron to activate a .php file and have tried everything to suppress the file that gets written to the root directory.. actually its written above the root above the /public_html

    I found that wget -q will shut off email notification.
    I found that -delete-after will delete the file after download.

    But nothing seems to work for the file being auto generated at the root.. and I have to go there and delete several hundred files per day.. I hate to have to build a php script run by a cron to daily delete this garbage.

    Can anyone shed some light on this terrible problem?

    Thanks
    Tom

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Try adding " > /dev/null 2>&1" to the end of your wget shell command. (Example)

  • #3
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    can you not use the PHP cli version?
    just run php /home/you/public_html/yourfile.php
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •