How to integrate python into shell [on hold]

The name of the pictureThe name of the pictureThe name of the pictureClash 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






share|improve this 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
















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






share|improve this 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












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






share|improve this question













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








share|improve this question












share|improve this question




share|improve this question








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












  • 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















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay