{"id":771,"date":"2014-10-09T17:54:31","date_gmt":"2014-10-09T17:54:31","guid":{"rendered":"http:\/\/shivdev.com\/blog\/?p=771"},"modified":"2014-10-09T17:54:52","modified_gmt":"2014-10-09T17:54:52","slug":"passing-arguments-to-a-script-started-through-ubuntu-upstart","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2014\/10\/09\/passing-arguments-to-a-script-started-through-ubuntu-upstart\/","title":{"rendered":"Passing arguments to a script started through Ubuntu Upstart"},"content":{"rendered":"<p>If you&#8217;re trying to use the &#8211;exec option and need to pass in arguments, then you would need to use &#8212; to let &#8211;exec know that these are arguments to the script that needs to be executed. <\/p>\n<blockquote><p>\n# No arguments passed to test.py<br \/>\nexec start-stop-daemon &#8211;start &#8211;exec python test.py <\/p>\n<p># Arguments (-i $PARAM) passed to test.py<br \/>\nexec start-stop-daemon &#8211;start &#8211;exec python test.py <strong>&#8212; -i $PARAM<\/strong>\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re trying to use the &#8211;exec option and need to pass in arguments, then you would need to use &#8212; to let &#8211;exec know that these are arguments to the script that needs to be executed. # No arguments passed to test.py exec start-stop-daemon &#8211;start &#8211;exec python test.py # Arguments (-i $PARAM) passed to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,32],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/771"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":2,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":773,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions\/773"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}