DynmapCore icon indicating copy to clipboard operation
DynmapCore copied to clipboard

custom-commands / image-updates / postupdatecommand not fireing

Open begner opened this issue 10 years ago • 2 comments

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 avatar Dec 02 '15 16:12 begner

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 avatar Dec 02 '15 22:12 begner

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

begner avatar Dec 02 '15 23:12 begner