cassandra - What is the proper way to add optional program arguments to a plist? -


this command line usage statement displayed near bottom of running cassandra wiki page.

bin/cassandra [-f] [-h] [-p pidfile] 

below it, example of cassandra plist file mac os x 10.6.x. i’ve quoted example’s array of program arguments sake of brevity , clarity.

... <array> <string>/opt/local/bin/cassandra</string> <string>-h</string> </array> ... 

now, when comes adding optional [-p pidfile] arguments program arguments’ array, proper write string nodes as?

<string>-p</string> <string>/usr/local/apache/cassandra/0.7.5/runtime/pid.txt</string> 

or as?

<string>-p /usr/local/apache/cassandra/0.7.5/runtime/pid.txt</string> 

the former. latter should work if omit space, if cassandra uses compatible posix getopt().


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -