خرید بک لینک

I have a simple cronjob that uses curl to download a file and save the contents to a file. The crontab file reads:

45 17 * * * /home/my_useame/public_html/./update_md.sh

where update_sh.md =

#!/bin/bash

curl https://docs.google.com/document/d/FILE_ID/export?format=txt > page.md

where FILE_ID is the unique file ID for my google document.

The email output I get shows a successful curl report, but the file page.md does not get updated. I can verify that when I run the curl command manually, it shows the same success report and updates page.md.

Email report:

  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                 Dload  Upload  Total  Spent    Left  Speed
101  2229    0  2229    0    0  9814      0 --:--:-- --:--:-- --:--:-- 12247

Bash output when ruing manually:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
101  2229    0  2229    0     0  11957      0 --:--:-- --:--:-- --:--:-- 15697

Any idea why page.md is not updating through the cronjob but will update just fine my ruing the command manually?

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 22 فروردين 1395 ساعت: 8:37

صفحه بندی