You need to use the proper syntax for the STAF command executable. The
STAF command executable expects 3 arguments: <machine> <service>
<request>
You forgot to specify the <machine> argument, so it thinks "execute" is
the machine's host name, thus you see the error message that says "Unknown
host name: execute".
You also forgot to specify the service name: STAX. Also, you probably
don't want to specify ./ preceding the xml file name because the command
will be executed in the environment that STAFProc is running in (where the
current directory is whatever directory STAFProc was run from), not the
command prompt environment.
You need to specify something like:
STAF staxMachine STAX EXECUTE FILE /tests/jobTimer.xml FUNCTION
rebootTarget
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
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