Code:
Cannot exec: './hldswatch': No such file or directory
Even though it's pointing right.
Tried with and without .py extension in the cmd.
Code:
cd hlds
screen -S hldswatcher ./hldswatch.py servers.conf
Both hldswatch.py and servers.conf are in /hlds/ folder with hlds_run executable file.
So running command:
Code:
screen -A -m -d -S hlds ./hlds_run
works fine.
In case, yes, I executed chmod +x hldswatch.py
It worked. But not to run it somehow.
Ubuntu 32-bit
Python 2.7
EDIT:
Code:
$ type -P python
$ which python
Googled ".py not executable linux", some had the same issue with #!/usr/bin/python, but none of the replies I've found doesn't solve it. :/