Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using SSH secure shell to connect to the my remote server. I am using plone. When I go to the console through

./bin/instance debug

I am able to execute python codes. However, when I write


it gives me error that says:

python:command not found.

I think it is due to the path issue. But, I don't have any idea to solve it! Can anyone suggest me about what should I do?

share|improve this question

migrated from Aug 7 '12 at 10:40

This question came from our site for professional and enthusiast programmers.

Try an absolute path, like /usr/bin/python. – poke Aug 7 '12 at 10:06
Has nothing to do with Plone – Maulwurfn Aug 7 '12 at 10:40

Maybe you should use something like that:

ssh <your_server> "/usr/bin/python <path_of_your_project>/bin/instance debug"

Where <your_server> is the IP or hostname of your server and <path_of_your_project> the fullpath of your project.

share|improve this answer

This means that there is no python executable on the system path for the user account you are using to ssh into the server. However, as you are able to run bin/instance debug, there must be a python executable on the server somewhere.

As poke has suggested, you can use an absolute path to that python executable, you just need to figure out where it is located. You will find that if you read the first line of you bin/instance script the path to the python it uses is right there.

$ more bin/instance
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .