Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

PHP EXEC NOHUP

I am trying to use the php exec command it have a process continue in the background even if the user closes the window. Before this, I would run:
exec("./a.out > /dev/null &") with no problem.

however, now i need run:
exec("nohup ./a.out > /dev/null &")

when i run this, i receive the following error:
/var/www/html/secure/functions/nohup: No such file or directory

how can i have exec take the entire parameter as the command, not just the word?

Thanks,
Orlando

Powerbook G4, Mac OS X (10.4.3)

Posted on Jan 20, 2006 10:34 PM

Reply
3 replies

Jan 21, 2006 9:26 PM in response to variable

Orlando--

hi charlie... I figured out the issue. In php.ini,
i had safe mode equal to on. therefore, it was only
looking for files in the path specified.


Glad to hear you worked it out. I'm not that familiar with PHP, so I wasn't sure if there's a setting like that in the php.ini file.

Make sure, though, that if you change the php.ini file, it doesn't make it possible for someone to compromise your computer. Specifically, look for places where someone could execute a program from input on a web form.

cheers,

charlie

PHP EXEC NOHUP

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.