2
The command
python foo.py
When called on the terminal, it runs the uploaded python file. Imagine that I have a python file that always needs to be called as follows:
xvfb-run python foo.py
to work.
Is there any way I can write something like this in Shell:
python = xvfb-run python
So whenever I call python
he’ll call xvfb-run python
?
I really liked to use the Mands but it was discontinued. https://docs.python.org/2/library/commands.html for python 3

import commands
result = commands.getstatusoutput("xvfb-run python foo.py")


– Valdinei Dos Santos