curl in crontab: Empty output
I try to use curl in crontab. For testing purposes I defined a job like this:
*/5 * * * * /usr/bin/curl -sSkL https://rawgit.com > /home/nemo/Downloads/test
The output file is empty. At first I thought the reason is HTTPS, but seems like it is not the cause.
When I run the command manually, it works as it should. Does anyone know why?
I'm not familiar with crontab, but tried your line of code anyway and I got
-bash: */5: No such file
.So I tried again but without
Spam Hunter ( 2018-02-17 12:52:32 +0300 )*/5****
and then the test file was populated with data.@Edz it's a crontab line and not a bash command :) :)
juiceme ( 2018-02-17 13:40:27 +0300 )lol, thanks, I did say I'm not familiar with crontab! :P
Spam Hunter ( 2018-02-17 14:07:05 +0300 )