Hi Sharon,

Thank you very much.

Since the content of SCRIPT options has never been logged in the STAX_Service 
log. Are these SCRIPT options logged somewhere?

Thanks,

Cindy
________________________________________
From: Sharon Lucas [luc...@us.ibm.com]
Sent: Friday, May 10, 2013 6:05 AM
To: Cindy Zhu
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] The service log didn't provide the arguments passing 
from STAF command

The STAX EXECUTE request that you provided did not use the ARGS option to 
specify any arguments so the STAX_Service log is correctly showing you that 
there were no arguments specified for the STAX job.

>From section "EXECUTE" (in the "Request Syntax" section) in the STAX User's 
>Guide:

 *   ARGS specifies arguments to pass to the function element called to start 
the job, overriding the arguments, if any, specified for the defaultcall 
element in the XML document.

Perhaps you're confusing your SCRIPT options with the ARGS option?  The content 
of SCRIPT options has never been logged in the STAX_Service log.  A SCRIPT 
option could contain lines and lines of Python code.

 *   SCRIPT defines Python code to be executed. This is like a <script> element 
in root <stax> element in the XML document, but defined when submitting an 
execute request, rather than within the XML document. Note that a script 
parameter specified in an execute request will be executed by the STAX service 
after any "global" <script> elements (that is, those contained directly within 
the root <stax> element) and after any SCRIPTFILE parameters are executes, but 
before the starting function is called. Thus, you can override the value of a 
variable specified in a global <script> element or in a SCRIPTFILE by using a 
script parameter in the execute request. You may specify as many SCRIPT 
parameters as needed. This option will handle private data.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        Cindy Zhu <c...@fekete.com>
To:        "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>,
Date:        05/09/2013 06:06 PM
Subject:        [staf-users] The service log didn't provide the arguments 
passing from STAF command
________________________________



Hi,

I have following STAF command to run a STAX job:

STAF “1722W7.Fekete.com ” STAX EXECUTE FILE “D:\DistributedTesting\Run.xml” 
MACHINE “1722W7.Fekete.com” JOBNAME “RegressionTest” SCRIPT “PRODUCT=’Harmony’” 
SCRIPT “VERSION=’1.1.1.1’” CLEARLOGS ENABLED

When I used this STAF command “STAF 1722W7.Fekete.com LOG QUERY MACHINE 
{STAF/CONFIG/MACHINENICKNAME} LOGNAME STAX_Service” to query the STAX services, 
 it didn’t show me any arguments passed from the STAF command. What I see was 
this:

“JobID: 29, File: D:\DistributedTesting\Run.xml, Machine: 1722W7.Fekete.com, 
Function: , Args: , JobName: RegressionTest”

I just updated to STAF3413 64bit version. I remember I could see all arguments 
passed in the log before my upgrade.

Any ideas why the arguments not showing in the service log? Please help.

Thanks,

Cindy




 ------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! 
http://p.sf.net/sfu/neotech_d2d_may_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to