The syntax for submitting command line STAF requests is:

Usage: STAF [-verbose] <Endpoint | LOCAL> <Service> <Request>

So, your request is missing the Endpoint (i.e. hostname) and the service 
name (STAX).  That is why the error message is telling you: Unknown host 
name: execute

Your request should be something like:

staf hostname.cn.ibm.com STAX execute file ./jobTimer.xml function 
rebootTarget

David Bender
STAF/STAX Development
(512-286-5315)
IBM Austin Bldg. 903-5B002
Internet: bda...@us.ibm.com




Yu Rong Tan <tan...@cn.ibm.com> 
05/18/2009 11:55 PM

To
<staf-users@lists.sourceforge.net>
cc

Subject
[staf-users] STAF Execute command failed






Dear list:
function "rebootTarget" have no arguments. I try to run this function like 
this, but failed all the times. Why? How to make it right?

-bash-3.2$ staf execute file ./jobTimer.xml function rebootTarget
Error submitting request, RC: 16
Additional info
---------------
STAFConnectionProviderConnect: Error resolving host name: Unknown host 
name: execute, gethostbyname_r(): 22, Endpoint: tcp://execute

--
Best Regards, 
YuRong Tan(谭玉蓉) 

IBM Smart Business BIO
IBM China System & Technology Lab
Tel: (86-10) 82452176
Addr: 1BW128, 1F,28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West 
Road, Haidian District Beijing P.R.China 100193
地址:北京市海淀区东北旺西路8号,中关村软件园28号楼一层 邮编:100193
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to