我真的对 cron 工作一无所知,但我正试图让它为我正在工作的经纪公司网站工作。任何帮助将不胜感激。提前致谢。
我得到了一个 xml 数据源,我正在尝试从中更新我自己的 xml。我得到了以下 xml.sh 文件
cd `dirname $0`
echo `date` "Importing boats" >> /home/content/91/11071291/html/used-boats/import.log
curl -o /home/content/91/11071291/html/used-boats/horizon.xml "https://I-hid-this-address-incase-ishouldnt-share-on-stackoverflow.com?status=on" >> import.log
SUCCESS=$?
echo $SUCCESS
if [ $SUCCESS -ne 0 ]; then
echo "Data Download failed. Exiting"
exit $SUCCESS
fi
home/content/91/11071291/html/used-boats/import-local-xml.php >> /home/content/91/11071291/html/used-boats/import.log
运行 cron 作业时,我总是收到此错误:
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file