POV-Ray : Newsgroups : povray.unix : execute povray thru cgi Server Time
29 Oct 2024 22:46:18 EDT (-0400)
  execute povray thru cgi (Message 1 to 4 of 4)  
From: rover
Subject: execute povray thru cgi
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

From: Warp
Subject: Re: execute povray thru cgi
Date: 4 Nov 2003 20:28:55
Message: <3fa85257@news.povray.org>
rover <sec### [at] mailru> wrote:
> QUestuion: it seems to me povray process does not execute. why? What do i
> wrong?

  IIRC there's a bug in unix.cpp which causes POV-Ray to crash when
there's no tty. The fix was simple, but I don't remember what was it
(but you needed to fix unix.cpp and recompile).

  The next version will fix this problem, among other things.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: execute povray thru cgi
Date: 5 Nov 2003 09:51:21
Message: <3fa90e69@news.povray.org>
In article <3fa85257@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   IIRC there's a bug in unix.cpp which causes POV-Ray to crash when
> there's no tty. The fix was simple, but I don't remember what was it
> (but you needed to fix unix.cpp and recompile).
>
>   The next version will fix this problem, among other things.

If you read to the end you will notice this most likely isn't the problem as
he gets output.

I would recommend to make sure display is disabled, aka -d on the
command-line is passed as the last thing.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: rover
Subject: Re: execute povray thru cgi
Date: 5 Nov 2003 12:20:01
Message: <web.3fa9311aa7eb47ca91325a70@news.povray.org>
I v solved this problem. Just recompile povray --without-x and execute with
-d oprion.

Thanx for care
Paul Khimyack


Post a reply to this message

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