How to integrate python into shell [on hold]
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
2
down vote
favorite
This is my code:
#!/bin/bash
python - <<END
import subprocess
command = raw_input('console>')
p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
(output, err) = p.communicate()
print "", output
END
shell python
put on hold as unclear what you're asking by Kusalananda, Thomas, schily, Jeff Schaller, Rui F Ribeiro 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |Â
up vote
2
down vote
favorite
This is my code:
#!/bin/bash
python - <<END
import subprocess
command = raw_input('console>')
p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
(output, err) = p.communicate()
print "", output
END
shell python
put on hold as unclear what you're asking by Kusalananda, Thomas, schily, Jeff Schaller, Rui F Ribeiro 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
2
The question should include an overview of the what you want to do, of what goes wrong (including error messages) when you try, and what you expected to happen.
â Kusalananda
2 days ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
This is my code:
#!/bin/bash
python - <<END
import subprocess
command = raw_input('console>')
p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
(output, err) = p.communicate()
print "", output
END
shell python
This is my code:
#!/bin/bash
python - <<END
import subprocess
command = raw_input('console>')
p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
(output, err) = p.communicate()
print "", output
END
shell python
edited 2 days ago
Kusalananda
100k13199311
100k13199311
asked 2 days ago
chitranjan morwal
111
111
put on hold as unclear what you're asking by Kusalananda, Thomas, schily, Jeff Schaller, Rui F Ribeiro 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Kusalananda, Thomas, schily, Jeff Schaller, Rui F Ribeiro 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
2
The question should include an overview of the what you want to do, of what goes wrong (including error messages) when you try, and what you expected to happen.
â Kusalananda
2 days ago
add a comment |Â
2
The question should include an overview of the what you want to do, of what goes wrong (including error messages) when you try, and what you expected to happen.
â Kusalananda
2 days ago
2
2
The question should include an overview of the what you want to do, of what goes wrong (including error messages) when you try, and what you expected to happen.
â Kusalananda
2 days ago
The question should include an overview of the what you want to do, of what goes wrong (including error messages) when you try, and what you expected to happen.
â Kusalananda
2 days ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
2
The question should include an overview of the what you want to do, of what goes wrong (including error messages) when you try, and what you expected to happen.
â Kusalananda
2 days ago