1. From the STAF User's Guide:  Note that when the value of an option is 
the same as the name of the option (or another supported option), the 
value must be distinguished as such either by quoting the value or by 
using the length delimited format. For example, if NAME is the name of an 
option and you also want to specify NAME as the value of the option, you 
should specify either NAME "NAME" or NAME :4:NAME.

So, you could do something like:

self.staf_handle.submit(node, "process", "start command 
/etc/rc.d/init.d/krobix parms \"start\"")

or

self.staf_handle.submit(node, "process", "start command 
/etc/rc.d/init.d/krobix parms " + wrapData("start"))

2. The STAX User's Guide HTML file is available in the STAF source tree:
http://staf.cvs.sourceforge.net/staf/src/staf/services/stax/docs/userguide/staxug.html
(Click on "Download" for the most recent revision to view the HTML file).

David Bender
STAF/STAX Development
8-1268 (512-838-1268) 
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]




Nathan Parrish <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
02/07/2008 04:14 PM

To
staf-users@lists.sourceforge.net
cc

Subject
[staf-users] two little things: process service request parsing and STAX 
UG in HTML






these have been bothering me for a while...
1.  I want to execute a command through the process service which includes 
the word "start".  so I tried:
result = self.staf_handle.submit(node, "process", "start command 
/etc/rc.d/init.d/krobix parms start")
but when this is parsed, the start at the end gets picked up as a process 
service keyword, so I get a syntax error.  I ended up changing start to 
restart and things work, but it's a suboptimal solution.  how do I make 
staf treat stuff in the request string as arguments and not parse them as 
keywords? 
2.  the STAX UG in PDF is a beast to navigate: no page numbers in the TOC 
(or anywhere) and the hyperlinks don't work (at least in the PDF viewer I 
have use of on my fedora desktop).  would it be possible to put up an HTML 
version of staxug similar to that for stafug? 

thanks much,
nathan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to