Re: [staf-users] How to log all requests and result processed by staf ?

2008-10-16 Thread Edmonds, Michael
http://staf.sourceforge.net/current/STAFUG.htm#HDRTRACESRV staf local trace set destination to file staf local trace enable all tracepoints staf local trace enable all services there will be a ton of info though, so good luck w/ that. to make these persistent across restarts, you'll have t

Re: [staf-users] How to log all requests and result processed bystaf ?

2008-10-16 Thread Edmonds, Michael
ok, from the documentation, you can see that you can choose to limit the tracepoints to be ServiceRequest / ServiceResults "staf local trace enable tracepoints ServiceRequest ServiceResult" that should be slightly more managable. Mike From: Edmo

Re: [staf-users] Is there any way to track submitted request status completion with basic STAF

2008-10-16 Thread David Bender
The STAX User's Guide has some examples on how to check the return code (and returned files) when a completes: http://staf.sourceforge.net/current/STAX/staxug.html#Header_Process For example: In the following example of a process element, a command which writes to stdout and stderr and produc

[staf-users] How to log all requests and result processed by staf ?

2008-10-16 Thread Sandy Young
Hi, all: As title, how can I do that? Thanks, Homer - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a

Re: [staf-users] Is there any way to track submitted request status completion with basic STAF

2008-10-16 Thread Avijit Roy
I tried with following but didn't get the expected result. Is there anything wrong I am doing? # fill in @machines use strict; use Data::Dumper; use lib qw( ... ); # Path to PLSTAF use PLSTAF; my $name = "test"; &STAF::Register($name); my $requests = 0; my $command = "notepad"; my $re

Re: [staf-users] Is there any way to track submitted request status completion with basic STAF

2008-10-16 Thread Edmonds, Michael
you'll need a space " " between the wrapped command and the ASYNC keyword like ." ASYNC ..." and if someone isn't manually closing notepad, you're going to have to programmatically do it: submit(..., "PROCESS", "STOP HANDLE $request USING WM_CLOSE"); so that it will end

Re: [staf-users] FS service file size limits

2008-10-16 Thread Sharon Lucas
Yes, if the DIRECTORY or TODIRECTORY value in a FS COPY request contains spaces, you should use the STAFUtil.wrapData() function to put them in a colonLengthColon format. For example: from com.ibm.staf import STAFUtil source_ip 'FS' 'COPY DIRECTORY %s TODIRECTORY %s TOMAC

Re: [staf-users] Is there any way to track submitted request status completion with basic STAF

2008-10-16 Thread Charles Rankin
At a minimum, you're going to want a "WAIT" added to your "QUEUE GET" request. Without the "WAIT", the "GET" request will return immediately (indicating that there was no element -- you can check the RC for that) with no data. Charles Rankin From: "Avijit Roy" <[EMAIL PROTECTED]> To: "Edmo

Re: [staf-users] Is there any way to track submitted request status completion with basic STAF

2008-10-16 Thread Sharon Lucas
Yes, you're doing several things wrong: 1) First, you didn't fill in @machines with your machines. The previous poster had a comment in the sample code that you needed to do this. Here's some updated code you can run. It sets my @machines = ( 'local', 'local' ); This means it will submit the

Re: [staf-users] Is there any way to track submitted request statuscompletion with basic STAF

2008-10-16 Thread Avijit Roy
Thanks to both of you Sharon and Edmonds for the details you guys provided. I can now see the response. Thanks, Avi From: Sharon Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 1:57 PM To: Avijit Roy Cc: staf-users@lists.sourceforge.net Subj