I've been running a python script successfully on Linux for about a month. Recently, I got a message that says "can not execute", "No such file or directory". I can type python and it runs on command line, but my script will no longer run on the daemon. It has executable privileges, and the path is !#/usr/bin/python. Any ideas?

Recommended Answers

All 2 Replies

I suggest to replace !# with #!

That can be a permission problem. Make sure that user has access to program file and the directory it is in.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.