0

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.

#!/bin/zsh
python3 surajmandal.py << EOF
1
Potato
POT22
200
1.4

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.

0

You must log in to answer this question.

Browse other questions tagged .