update.XXXX files in root folder

by fossy, (3998 days ago)

Hi,

The cronjob updating selfoss keeps creating update.XXXX files in my server's root folder. How can I get rid of those?

Thanks!

update.XXXX files in root folder

by gerdroot, (3997 days ago) @ fossy

How does your cronjob look like?

i guess you are running wget or curl?

Try looking for commandline parameters that tell them to not save the output or maybe try redirect the output to /dev/null


hth

update.XXXX files in root folder

by fossy, (3997 days ago) @ gerdroot
edited by fossy,

Yes, I am using wget, but I am already running it as:

wget -o /dev/null http://www.mysite.com/news/update

...which is why I came here.

EDIT: So I have tested this by actually logging wget. Here's what it says:

--2015-01-16 06:52:01-- http://www.mysite.com/news/update
Resolving www.mysite.com (www.mysite.com)... 1.2.3.4
Connecting to www.mysite.com (www.mysite.com)|1.2.3.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'update.2796'

0K 560K=0s

2015-01-16 06:52:04 (560 KB/s) - 'update.2796' saved [8]

update.XXXX files in root folder

by AlexB, (3939 days ago) @ fossy

wget -o /dev/null just throws away the wget logfile. You'll probably want -O /dev/null too...

update.XXXX files in root folder

by fossy, (3937 days ago) @ AlexB

Indeed. Works like a charm, so it was definitely worth the wait. ;) Thanks!

RSS Feed of thread