webbukkit / DynmapCore

Common, server-neutral core component for Dynmap
Apache License 2.0
39 stars 54 forks source link

custom-commands / image-updates / postupdatecommand not fireing #57

Open begner opened 8 years ago

begner commented 8 years ago

Hi

We've got Dynmap v2.2-1118 running here, and tried to get the postupdatecommand script working.

Our testscript:

!/bin/bash

echo "postupdatecommand: $@" >> ./test.log exit 0

but it will never be called

Is that a known issue?

begner commented 8 years ago

Ahh... the problem seams to be the pre/post render use ProcessBuilder, which cant be called with

(if setting is = '/bin/bash /home/..../scriptname.sh') ProcessBuilder('/bin/bash /home/..../scriptname.sh', fname.getAbsolutePath()).start().waitFor(); it shoule be ProcessBuilder('/bin/bash', '/home/..../scriptname.sh', fname.getAbsolutePath()).start().waitFor();

so - maybe someone can integrate optional parameters in the settings which will be passed to the procces. this will make pre/post script development much easier.

meanwhile i will use shc (shellScriptCompiler)

begner commented 8 years ago

Hmm... even with a single binary, the process does not start at all...

So - again :) Is this a known issue?

custom-commands / image-updates does not start at all?

i do not get an exception or some errors, etc