[erlang-questions] [FIXED] Command line and quotes
Pupeno
pupeno@REDACTED
Wed Dec 6 15:26:22 CET 2006
Ok, I've found the fix. Basically it is in the FAQ:
http://wooledge.org/mywiki/BashFaq#faq50
My code now looks like this:
COMMAND=($RUN_ERL -daemon $PIPEDIR/ $LOGDIR/ "$ERL -sname $NAME -boot
fanterlasticfour -config @CONFIGDIR@/fanterlasticfour/fanterlasticfour")
or
COMMAND=($ERL_CALL -sname $NAME -a "init stop")
and then:
echo "${COMMAND[@]}"
"${COMMAND[@]}"
or
"${COMMAND[@]}" &> /dev/null
That's it.
--
Pupeno <pupeno@REDACTED> (http://pupeno.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061206/b7e0c758/attachment.bin>
More information about the erlang-questions
mailing list