I logged into my linux hesk server today and for some reason did an ls on the /root directory.
I have over 40 thousand files such as
hesk_pop3.php.44810
It looks like it is generated every 5 minutes for the pop mail check.
the file contains
#!/usr/bin/php -q
any idea why?
and I'm assuming all are safe to delete?
My crontab entry look like the following
*/5 * * * * wget http://mywebserver/hesk/inc/mail/hesk_pop3.php /dev/null > /dev/null 2>&1
hesk_pop3.php.xxxx fourty thousands times
Moderator: mkoch227
Re: hesk_pop3.php.xxxx fourty thousands times
looks like adding -O to the cronjob suppressed the file creation.
*/5 * * * * wget http://mywebserver/hesk/inc/mail/hesk_pop3.php -O /dev/null > /dev/null 2>&1
*/5 * * * * wget http://mywebserver/hesk/inc/mail/hesk_pop3.php -O /dev/null > /dev/null 2>&1
Re: hesk_pop3.php.xxxx fourty thousands times
Why are you using wget to call a local file?
You should use something like this instead:
*/5 * * * * /usr/bin/php -q /home/user/public_html/hesk/inc/mail/hesk_pop3.php >/dev/null 2>&1
You should use something like this instead:
*/5 * * * * /usr/bin/php -q /home/user/public_html/hesk/inc/mail/hesk_pop3.php >/dev/null 2>&1
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: hesk_pop3.php.xxxx fourty thousands times
I forget why I used wget. I'll try a local call and see if it works this time.
Re: hesk_pop3.php.xxxx fourty thousands times
working this time around, there was a reason in the past, don't remember why, but it just wasn't working from cron