{"id":7269,"date":"2014-06-03T23:29:46","date_gmt":"2014-06-03T23:29:46","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-eof-while-looking-for-matching-on-cron-job-collection-of-common-programming-errors\/"},"modified":"2014-06-03T23:29:46","modified_gmt":"2014-06-03T23:29:46","slug":"unexpected-eof-while-looking-for-matching-on-cron-job-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-eof-while-looking-for-matching-on-cron-job-collection-of-common-programming-errors\/","title":{"rendered":"&ldquo;Unexpected EOF while looking for matching &#8220;&rdquo; on cron job-Collection of common programming errors"},"content":{"rendered":"<p>I set up a cron job on my server running RedHat 4.1 to backup MySQL databases, and then upload to Amazon S3. The goal is to drop the .bz2 file in a folder corresponding with the day of the week. However, I&#8217;m getting the following error mailed to me by daemon.<\/p>\n<p>Cron job:<\/p>\n<pre><code>MAILTO=backups@example.com\n0       4       *       *       *       mysqldump --all-databases  -ubackups -pPassword | gzip &gt; all-databases.sql.bz2; s3cmd put all-databases.sql.bz2 s3:\/\/backup_exampleserver.com\/mysql_backups\/`date +%A`\/all-databases.sql.bz2\n<\/code><\/pre>\n<p>Error message:<\/p>\n<pre><code>\/bin\/sh: -c: line 0: unexpected EOF while looking for matching ``'\n\/bin\/sh: -c: line 1: syntax error: unexpected end of file\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I set up a cron job on my server running RedHat 4.1 to backup MySQL databases, and then upload to Amazon S3. The goal is to drop the .bz2 file in a folder corresponding with the day of the week. However, I&#8217;m getting the following error mailed to me by daemon. Cron job: MAILTO=backups@example.com 0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7269","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7269"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7269\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}