Server Fault is a question and answer site for system and network administrators. 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'm trying to execute the following command on my CentOS 6.3 x64 server:

nohup "/usr/local/bin/php -v"

The result is:

nohup: ignoring input and appending output to `nohup.out'
nohup: failed to run command `/usr/local/bin/php -v': No such file or directory

This works on CentOS 5 no problem. Any idea what I'm doing wrong?

share|improve this question
up vote 7 down vote accepted

That's happening because you don't have a file named /usr/local/bin/php -v. Since you put it in quotes, the entire string is being treated as the argument.

Try removing the quotes.

nohup /usr/local/bin/php -v
share|improve this answer
Perfect! Thanks! – Reado Feb 11 '13 at 17:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.