While  you cannot do it in one step via the PROCESS service, you can do it 
in two steps as follows.  The process's stdout/stderr data will be written 
to the <ProcessStdoutFileName> and then the FS COPY request will copy that 
file from the remote process machine to the machine that submitted the 
process start request.

1)  STAF <remoteMachine> PROCESS START SHELL COMMAND "ls -l" STDOUT 
<ProcessStdoutFileName> STDERRTOSTDOUT WAIT
2)  STAF <remoteMachine> FS COPY FILE <ProcessStdoutFileName> TOFILE 
<TargetFileName>

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

----- Forwarded by Sharon Lucas/Austin/IBM on 02/26/2010 09:41 AM -----

David Bender/Austin/i...@ibmus 
02/26/2010 08:47 AM

To
"Uma Maheswar Chilukuri" <u...@mach.com>
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users] PROCESS service output to file






No, that is not possible. The STDOUT/STDERR files are always created on 
the remote system where the process is executing.

Thanks, 
David 

David Bender 
STAF/STAX Development 
IBM Software Group, WPLC 
11501 Burnet Rd. 
Bldg. 903-5B002 
Austin, TX 78758-3400 
Phone (T/L): 1-512-286-5315 (363-5315) 
ITN: 23635315 
Email: bda...@us.ibm.com 



"Uma Maheswar Chilukuri" ---02/26/2010 01:43:04 AM---Hi Sairam,


From:

"Uma Maheswar Chilukuri" <u...@mach.com>

To:

"Sai Ram Purandhar-B22305" <b22...@freescale.com>, 
<staf-users@lists.sourceforge.net>

Date:

02/26/2010 01:43 AM

Subject:

Re: [staf-users] PROCESS service output to file



Hi Sairam,

STDOUT can be caputired in $rootObject->{fileList}[0]{data} of 
$STAF::Result.

For my purpose I can write this into file separately but What I?m looking 
for is to specify this in the command request itself ,so that STDOUT 
<file> is created on the issuing system instead of remote system.

Thanks
Uma. 




From: Sai Ram Purandhar-B22305 [mailto:b22...@freescale.com] 
Sent: Friday, February 26, 2010 12:53 PM
To: Uma Maheswar Chilukuri; staf-users@lists.sourceforge.net
Subject: RE: [staf-users] PROCESS service output to file

Hi Mahesh,

Using STAX, you can surely do that. Whatever command you issue in STAX, 
you get the output into a variable like STAFResult.

Thanks,
Sairam

From: Uma Maheswar Chilukuri [mailto:u...@mach.com] 
Sent: Friday, February 26, 2010 11:39 AM
To: staf-users@lists.sourceforge.net
Subject: [staf-users] PROCESS service output to file

Hi,

Is there a way to get the output of a shell request in a file on the 
system where request has been issued instead of creating a file on system 
where shell command is executed.
STAF <remotemachine> PROCESS START SHELL COMMAND "ls -l " STDOUT 
<outputfile> returnstdout stderrtostdout wait

Above command creates ?output file? on remote machine not on the system 
where this request has been issued
Is there a way to do this instead of capturing stdout result from 
marshaled buffer and writing that to file?

Thanks,
Uma
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to