Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Pass variable from Python to Bash

Current License: CC BY-SA 3.0

Post Revisions

14 events
when toggle format what by license comment
Jul 16, 2019 at 17:21 answer added Anonymous Dodo timeline score: 0
Jul 16, 2019 at 16:39 answer added hamid ghadery timeline score: 1
Sep 23, 2018 at 0:50 review Close votes
Sep 27, 2018 at 0:00
Sep 23, 2018 at 0:33 comment added jww Possible duplicate of How to pass variables from python script to bash script
Apr 26, 2017 at 2:24 vote accept user15964
Apr 26, 2017 at 2:22 history edited user15964 CC BY-SA 3.0
added 552 characters in body
Apr 23, 2017 at 19:58 answer added agc timeline score: 5
Apr 23, 2017 at 15:52 comment added Chris Johnson Side note -- assuming you want your Python source code to be used as-is (not subject to parameter expansion, command substitution etc. by the bash shell) you must enclose the heredoc delimiter in quotes like 'EOF'. That won't affect the code in your example, but this is a good habit to get into with heredocs.
Apr 23, 2017 at 15:40 history edited John Kugelman CC BY-SA 3.0
deleted 1 character in body; edited title
Apr 23, 2017 at 15:38 answer added s-m-e timeline score: 2
Apr 23, 2017 at 15:36 comment added Moinuddin Quadri Why are you creating the bash script when you want to run a python code? Either use BASH syntax or Python. The thing which you require is not how programming works.
Apr 23, 2017 at 15:34 answer added Inian timeline score: 3
Apr 23, 2017 at 15:27 comment added Cyrus Your python script can not change bash‘s environment (here variable myvar).
Apr 23, 2017 at 15:22 history asked user15964 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /