I have a python script "program.py" that takes 2 command line arguments.
When I want to run this program on command line, I should enter:
./python myprogram.py arg1 arg2
However, I want to run my script without the "python" and ".py"
In other words, I want to do this:
./myprogram arg1 arg2
I've written a shell script "myprogram.sh":
#!/bin/bash
python myprogram.py
But I still have to run this by typing
./sh myprogram.sh arg1 arg2
which is still not what I want
Is there a way to achieve this?
Thanks