Basically what I want to do is make a file called doPython and in this file I want to do the command:
python myFile.py data.txt
I've tried Googling and making a few scripts but I can't seem to get it to work. It says "No such file or directory when I try with
#!/usr/bin/env python
python myFile.py data.txt
#!/usr/bin/env python says that your script is to be run with the Python interpreter. You just need to call sh or bash:
#!/bin/sh
python myFile.py data.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With