POV-Ray : Newsgroups : povray.beta-test : Shellout prohibited on Beta 41. OK with Povray 3.6.1 : Shellout prohibited on Beta 41. OK with Povray 3.6.1 Server Time
28 Jun 2024 02:50:41 EDT (-0400)
  Shellout prohibited on Beta 41. OK with Povray 3.6.1  
From: geep999
Date: 27 Dec 2010 14:00:01
Message: <web.4d18e1457653eaf9380f8080@news.povray.org>
Shellout is not working for me with Beta 41 on Slackware 13.1 x86_64.
Using the same povray.conf and povray.ini it works OK with Povray 3.6.1.

Pre_Scene and Post_Frame are prohibited. Post_Scene is ignored.

Error messages copy/pasted from the command line dialogue (error messages all
displaced twice!):
Rendering frame 1 of 3

Execution of shellout 'echo 'Pre_Scene' > mem.txt    && free -m >> mem.txt'
prohibited
Execution of shellout 'echo 'Pre_Scene' > mem.txt    && free -m >> mem.txt'
prohibited
Rendering frame 1 of 3

              using 2 thread(s) with 0.026 CPU-seconds total
Execution of shellout 'echo 'Post_Frame' >> mem.txt && free -m >> mem.txt'
prohibited
Execution of shellout 'echo 'Post_Frame' >> mem.txt && free -m >> mem.txt'
prohibited
Rendering frame 2 of 3

              using 2 thread(s) with 0.017 CPU-seconds total
Execution of shellout 'echo 'Post_Frame' >> mem.txt && free -m >> mem.txt'
prohibited
Execution of shellout 'echo 'Post_Frame' >> mem.txt && free -m >> mem.txt'
prohibited
Rendering frame 3 of 3

              using 2 thread(s) with 0.134 CPU-seconds total
Execution of shellout 'echo 'Post_Frame' >> mem.txt && free -m >> mem.txt'
prohibited
Execution of shellout 'echo 'Post_Frame' >> mem.txt && free -m >> mem.txt'
prohibited
POV-Ray finished

This is my povray.ini
Pre_Scene_Command="echo 'Pre_Scene' > mem.txt    && free -m >> mem.txt"
Post_Scene_Command="echo 'Post_Scene' >> mem.txt && free -m >> mem.txt"
Post_Frame_Command="echo 'Post_Frame' >> mem.txt && free -m >> mem.txt"

I have set these two lines in povray.conf:
[File I/O Security]
none       ; all read and write operations on files are allowed.

[Shellout Security]
allowed

Cheers,
Peter


Post a reply to this message

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