Stefan Schleifer wrote:
> I've set up a few shell-scripts which prepair some .pov-Files regularly
> and everything works fine when executing them on bash directly. When i put
> the main-shell script everything (creating pov-files, moving something
> around ...) works perfectly but povray drops out with
>
> ./mdf2navi.sh: line 41: 23667 Segmentation fault
> /usr/local/bin/povray -GW -GS -GR -GD -GF 1,1,5.pov
>
Running such a job as root is not a very good idea anyways.
Try using su(1) and pass it the shell script
su - stefan -c "~/mdf2navi.sh"
(And do not forget the single "-" after su.)
See if that helps.
Wolfgang
Post a reply to this message
|