> $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