Cron Job Creating Files

General support questions
Post Reply
hadleyfraser
Posts: 1
Joined: 2018/11/19 22:59:38

Cron Job Creating Files

Post by hadleyfraser » 2018/11/19 23:12:52

Hi

I have setup a few corn jobs which are running as expected.
I have added >/dev/null 2>&1 to the end of the command to stop the email being sent but every time the cron job runs it is generating a text file in the root of my server.

Here is a full example of the command that is running:

Code: Select all

wget http://mydomain.com/ajax.php?action=sync_items >/dev/null 2>&1
Which generates this file:

Code: Select all

ajax.php?action=sync_items
Any ideas on how to stop that file from being created?

Thanks

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cron Job Creating Files

Post by TrevorH » 2018/11/19 23:51:19

That's what wget does. It's its job. If you want wget to save the content of that page somewhere else then you have to tell it to do so.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply