0

I need to call a python tool (buttons.py), inside my shell script (emailsend.sh). The tricky part is this python tool is written in interacive mode. This is how I manually trigger tool button.py:

./button.py (which put users in the screen interactive console, and on it, I need to type the following:)

>>> tsr()
>>> tl()  
>>> activate(355)

Is there a way to embed all that inside my emailsend.sh script?

1
  • if the python script is not too long, upload it here, and you will be better helped. Commented Oct 19, 2013 at 17:04

1 Answer 1

2

Try this:

./button.py << EOF
tsr()
tl()
activate(355)
EOF
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.