Im trying executing a python file from an alias (macosx).
It's possible?.
alias execute ='python path/file.py'
Im trying like this, but doesn't work, any suggestion?
Thanks
Remove the space before the =, and it should work:
$ cat /tmp/x.py
print 'hello, world!'
$ alias execute='python /tmp/x.py'
$ execute
hello, world!
Also note that I'm using the absolute path (/tmp). Using a relative path would make the command work in some directories, but not in others.
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