POV-Ray : Newsgroups : povray.unix : execute povray thru cgi : execute povray thru cgi Server Time
6 Jul 2024 03:46:17 EDT (-0400)
  execute povray thru cgi  
From: rover
Date: 4 Nov 2003 18:25:01
Message: <web.3fa83455c2fac20618d771c60@news.povray.org>
I want to execute povray from php. But it does not work. No error
There is wrote about execution povray from cgi , but i cant see right
answer.
So i get up this question again.


I leav php and write test script for perl. Problem are the same

This sctipt that i have to test.

###test.pl
###
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
system("/usr/local/bin/povray +O/tmp/monica.tpl.png +I/tmp/monica.pov.tpl
/tmp/mypov.ini 2>&1 ");
print is done

This is ini file
###mypov.ini
######

Width = 800
Height = 600
Bounding_Threshold = 3
Display=off
Verbose=off
Library_Path=/usr/local/share/povray-3.5
Library_Path=/usr/local/share/povray-3.5/include
Library_Path=/home/httpd/cgi-bin/fonts
Library_Path=/mnt/share/000/Development/www/stereogram_web/gallery/depthmaps
Output_to_File=false
Output_File_Type=N8             ;; (+/-Ftype)

###


RESULT  in shell: about 30 sec
povray output ....
is done.

RESULT in cgi: less then 1 sec
is done

QUestuion: it seems to me povray process does not execute. why? What do i
wrong?


NEXT EXPEREMENT
Edit test script  and delete left povray without arguments.It shows povray
information.

#####test.pl
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
system("/usr/local/bin/povray  2>&1 ");
print is done

####

RESULT it works well in shell and in cgi
POV-Ray is based on DKBTrace 2.12 by David K. Buck & Aaron A. Collins.
.....
.....
is done


This is strange for me. May be i dont understand something ??????


Help me . Thanx.
PAUL


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.