diff --git a/server.pl b/server.pl index 7a527e7..5c6560d 100755 --- a/server.pl +++ b/server.pl @@ -331,7 +331,7 @@ handle_post(Request) :- ScriptPath, ( member(Script, Matches), - format(atom(ScriptPath), '~w/automation/~w.sh', [Destination, Script]) + format(atom(ScriptPath), '(cd ~w && ./automation/~w.sh)', [Destination, Script]) ), Scripts ),