curl error 56 (failure receiving network data) when run from cron
I have a bash script that uses curl to retrieve a file. It runs fine when I run it from interactive bash shell but curl fails with exit code 56 (failure in receiving network data) when I run the script with cron. I also get an error message curl: (56) SSL read: errno -5961 Any ideas? Crontab entry: 57 21 * * * /opt/tltutilities/lss/bin/get_hosts.sh 2>&1 | /bin/mail -s "get_hosts.sh" [email protected] Bash script: #! /bin/bash BASEDIR=/opt/tltutilities/lss cd $BASEDIR/bin curl -v -o /opt/tltutilities/lss/tmp/etc_hosts https://remote_host.edu/pub/hosts/hosts rc=$? if [ $rc -ne 0 ] then errmsg="curl: c
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.