update.XXXX files in root folder
by fossy, Thursday, January 15, 2015, 15:44 (3531 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, Friday, January 16, 2015, 07:53 (3531 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, Friday, January 16, 2015, 12:07 (3530 days ago) @ gerdroot
edited by fossy, Friday, January 16, 2015, 13:05
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, Sunday, March 15, 2015, 22:16 (3472 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, Tuesday, March 17, 2015, 23:51 (3470 days ago) @ AlexB
Indeed. Works like a charm, so it was definitely worth the wait. ;) Thanks!