terminal – A script that opens .py types in values required

Spread the love

First a bit of backstory, when I do python assignments I had to manually add inventory items again and again which was painful so I wrote a shell script which would start my python program and enter some values one by one according to cli. My current script looks like this.

python3 surajmandal.py << EOF

Now I want to extend even further by creating a apple script/shellscript/python script which can read instructions from a file(lets call it ‘instructions.txt’) and I want the script to use the instructions inside ‘instructions.txt’ to type in the terminal.

PS: I also have to take screenshots but I can automate that myself for now the annoying part is passing through all the data and testing the script.

Author: Dhanraj7978

Leave a Reply

Your email address will not be published. Required fields are marked *