{"id":120,"date":"2016-01-08T06:53:46","date_gmt":"2016-01-08T06:53:46","guid":{"rendered":"http:\/\/mr-west.uk\/python\/?page_id=120"},"modified":"2016-01-08T06:53:46","modified_gmt":"2016-01-08T06:53:46","slug":"running-a-python-program-through-bash","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/","title":{"rendered":"Running a Python program through BASH"},"content":{"rendered":"<div class=\"arconix-accordions arconix-accordions-vertical arconix-accordions-1\">\n<p>No black button? Don&#8217;t panic! Here is how to run your program:<\/p>\n<div class=\"arconix-accordion-title accordion-clickonthedirectorylink\"><i class=\"fa\"><\/i><p>click on the directory link<\/p><\/div><div class=\"arconix-accordion-content\">\n<p><a href=\"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-breadcrumb.png\" rel=\"attachment wp-att-121\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-121\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-breadcrumb.png\" alt=\"pa-breadcrumb\" width=\"439\" height=\"100\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-breadcrumb.png 439w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-breadcrumb-300x68.png 300w\" sizes=\"(max-width: 439px) 100vw, 439px\" \/><\/a><\/p>\n<\/div>\n<div class=\"arconix-accordion-title accordion-clickonBash\"><i class=\"fa\"><\/i><p>click on Bash<\/p><\/div><div class=\"arconix-accordion-content\">\n<p><a href=\"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-bash.png\" rel=\"attachment wp-att-122\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-122\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-bash.png\" alt=\"pa-bash\" width=\"519\" height=\"145\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-bash.png 519w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-bash-300x84.png 300w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/a><\/p>\n<\/div>\n<div class=\"arconix-accordion-title accordion-typePythonfilenamepyandpressEnter\"><i class=\"fa\"><\/i><p>type Python filename.py and press Enter<\/p><\/div><div class=\"arconix-accordion-content\">\n<p><a href=\"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-ch1.png\" rel=\"attachment wp-att-124\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-124\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-ch1.png\" alt=\"pa-ch1\" width=\"462\" height=\"98\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-ch1.png 462w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-ch1-300x64.png 300w\" sizes=\"(max-width: 462px) 100vw, 462px\" \/><\/a><\/p>\n<p>Your program should now run happily \ud83d\ude42<\/p>\n<p>P.s. If you have used a filename with spaces in it::<\/p>\n<p>[python]<\/p>\n<p>python &quot;im a file name with spaces.py&quot;<\/p>\n<p>[\/python]<\/p>\n<\/div><br \/>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Running a Python program through BASH - Python<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Running a Python program through BASH - Python\" \/>\n<meta property=\"og:description\" content=\"&nbsp; &nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/\" \/>\n<meta property=\"og:site_name\" content=\"Python\" \/>\n<meta property=\"og:image\" content=\"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-breadcrumb.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/\",\"name\":\"Running a Python program through BASH - Python\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\"},\"datePublished\":\"2016-01-08T06:53:46+00:00\",\"dateModified\":\"2016-01-08T06:53:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Python Unit Home\",\"item\":\"https:\/\/learnlearn.uk\/python\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Running a Python program through BASH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\",\"url\":\"https:\/\/learnlearn.uk\/python\/\",\"name\":\"Python\",\"description\":\"Programming\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/python\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#organization\",\"name\":\"Python\",\"url\":\"https:\/\/learnlearn.uk\/python\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"Python\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Running a Python program through BASH - Python","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/","og_locale":"en_GB","og_type":"article","og_title":"Running a Python program through BASH - Python","og_description":"&nbsp; &nbsp;","og_url":"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/","og_site_name":"Python","og_image":[{"url":"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2016\/01\/pa-breadcrumb.png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/","url":"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/","name":"Running a Python program through BASH - Python","isPartOf":{"@id":"https:\/\/learnlearn.uk\/python\/#website"},"datePublished":"2016-01-08T06:53:46+00:00","dateModified":"2016-01-08T06:53:46+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/python\/running-a-python-program-through-bash\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Python Unit Home","item":"https:\/\/learnlearn.uk\/python\/"},{"@type":"ListItem","position":2,"name":"Running a Python program through BASH"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/python\/#website","url":"https:\/\/learnlearn.uk\/python\/","name":"Python","description":"Programming","publisher":{"@id":"https:\/\/learnlearn.uk\/python\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/python\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/python\/#organization","name":"Python","url":"https:\/\/learnlearn.uk\/python\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"Python"},"image":{"@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/python\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"&nbsp; &nbsp;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/120"}],"collection":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":0,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/120\/revisions"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/media?parent=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}