hesk_pop3.php.xxxx fourty thousands times

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
J_E_F_F
Posts: 30
Joined: Sun Sep 28, 2014 2:55 pm

hesk_pop3.php.xxxx fourty thousands times

Post by J_E_F_F »

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
J_E_F_F
Posts: 30
Joined: Sun Sep 28, 2014 2:55 pm

Re: hesk_pop3.php.xxxx fourty thousands times

Post by J_E_F_F »

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
Klemen
Site Admin
Posts: 10135
Joined: Fri Feb 11, 2005 4:04 pm

Re: hesk_pop3.php.xxxx fourty thousands times

Post by Klemen »

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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
J_E_F_F
Posts: 30
Joined: Sun Sep 28, 2014 2:55 pm

Re: hesk_pop3.php.xxxx fourty thousands times

Post by J_E_F_F »

I forget why I used wget. I'll try a local call and see if it works this time.
J_E_F_F
Posts: 30
Joined: Sun Sep 28, 2014 2:55 pm

Re: hesk_pop3.php.xxxx fourty thousands times

Post by J_E_F_F »

working this time around, there was a reason in the past, don't remember why, but it just wasn't working from cron
Post Reply