[PHP] php xvfb gives xauth command not found
Hello, I am using the program njplot in a script, an unfortunately it reqires a minimal X environment. So I am executing this programm by: $test=exec(/usr/bin/xvfb-run /usr/bin/njplot -psonly testfile 21); echo $test; As a result I get: xvfb-run: xauth command not found; exiting. The strange thing is, that this command did work properly, but got broken some days ago. The script is being executed on a debian woody server. On the other side, the command /usr/bin/xvfb-run /usr/bin/njplot -psonly testfile 21 is working properly when being executed manually. Does anyone by chance know how to resolve this problem? Best regards, Daniel Struck -- Retrovirology Laboratory Luxembourg Centre Hospitalier de Luxembourg 4, rue E. Barblé L-1210 Luxembourg phone: +352-44116105 fax: +352-44116113 web: http://www.retrovirology.lu e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php xvfb gives xauth command not found
$test=exec(/usr/bin/xvfb-run /usr/bin/njplot -psonly testfile 21); echo $test; Try $test=exec(/usr/bin/xvfb-run /usr/bin/njplot -psonly testfile ); -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php xvfb gives xauth command not found
$test=exec(/usr/bin/xvfb-run /usr/bin/njplot -psonly testfile ); Actually, I think that you can just run the command without the xvfb-run command... $test = exec(/usr/bin/njplot -psonly testfile ); that should just create the testfile.ps file and not fire up a x-window. The error with the xvfb-run is that the command cannot find the xauth command that it needs to set up the x server environment. Try the above one and see if that works for you...if not then install xauth and revert to running it in xvfb-run. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php