POV-Ray : Newsgroups : povray.text.tutorials : jhu's very ghetto cluster for rendering still images : Re: jhu's very ghetto cluster for rendering still images Server Time
20 Jun 2024 17:12:28 EDT (-0400)
  Re: jhu's very ghetto cluster for rendering still images  
From: Warp
Date: 25 Mar 2010 03:31:36
Message: <4bab1158@news.povray.org>
jhu <nomail@nomail> wrote:
> #!/bin/sh
> echo "P6 1920 1080 255" >> scene.ppm

> for ((i=1; i<=1080; i++))

  AFAIK that form of the 'for' directive is a bash extension not available
in the original sh. Hence that script is basically broken because the first
line claims it's runnable by using sh.

  (In linux systems /bin/sh is just an alias for /bin/bash, which is something
I cannot comprehend. bash is certain *not* the same thing as sh, and making
them equal only produces broken sh scripts which assume bash extensions but
still claim to be runnable using sh. The script above works, but only if if
/bin/sh is an alias for bash or another shell that supports the extension.
It won't work in systems where /bin/sh is the true original sh.)

>  cat scene_$i.ppm | sed '1,3d' >> scene.ppm

  sed '1,3d' scene_$i.ppm >> scene.ppm

                                                          - Warp

Post a reply to this message

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