The first Return Code is the return code the process returned. Then in the list of files (in your example, the stdout file), the return code indicates the success or failure of retrieving that file's content
Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC From: mathew_elt...@logitech.com To: David Bender/Austin/i...@ibmus Date: 02/18/2010 08:27 PM Subject: Re: [staf-users] RC code 1 Yes this gives me 1. On the old OS this gives me 0. So I suppose my understanding of the object returned is not correct. I thought the first RC was for the Staf service and then the files were the RC of the command. If I am understanding you the first RC is that of the command and then it is not clear what the second RC for the file is. Thanks for the help!. -------- { Return Code: 1 Key : <None> Files : [ { Return Code: 0 Data : Outlet Name Status Post-on Delay(s) 20 i1A_20 ON 0.5 } Mathew Elting Sr. Project Engineer 510-713-4023 Yahoo: mathew.elt...@yahoo.com Inactive hide details for David Bender ---02/18/2010 05:56:32 PM---Are you sure the command is exiting with a 0 return code? IDavid Bender ---02/18/2010 05:56:32 PM---Are you sure the command is exiting with a 0 return code? If you run the process outside of STAF, i From: David Bender <bda...@us.ibm.com> To: mathew_elt...@logitech.com Cc: staf-users@lists.sourceforge.net Date: 02/18/2010 05:56 PM Subject: Re: [staf-users] RC code 1 Are you sure the command is exiting with a 0 return code? If you run the process outside of STAF, immediately after running the process, does "echo $?" also show a RC 1? Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC Inactive hide details for Mathew_Elting---02/18/2010 07:39:28 PM---No. It doesn't seem to have more information. Thanks for t Mathew_Elting---02/18/2010 07:39:28 PM---No. It doesn't seem to have more information. Thanks for the quick response. From: mathew_elt...@logitech.com To: David Bender/Austin/i...@ibmus Date: 02/18/2010 07:39 PM Subject: Re: [staf-users] RC code 1 No. It doesn't seem to have more information. Thanks for the quick response. staf local process start shell command 'ssh -i /evs/testmgr/ssh/id_dsa evs...@10.250.10.12 "pmCommand 1 status 20"' wait returnstderr returnstdout Response -------- { Return Code: 1 Key : <None> Files : [ { Return Code: 0 Data : Outlet Name Status Post-on Delay(s) 20 i1A_20 ON 0.5 } { Return Code: 0 Data : } ] } Mathew Elting Sr. Project Engineer 510-713-4023 Yahoo: mathew.elt...@yahoo.com Inactive hide details for David Bender ---02/18/2010 05:35:10 PM---If you add RETURNSTDERR to the PROCESS START request, does David Bender ---02/18/2010 05:35:10 PM---If you add RETURNSTDERR to the PROCESS START request, does the output show any additional error inf From: David Bender <bda...@us.ibm.com> To: mathew_elt...@logitech.com Cc: staf-users@lists.sourceforge.net Date: 02/18/2010 05:35 PM Subject: Re: [staf-users] RC code 1 If you add RETURNSTDERR to the PROCESS START request, does the output show any additional error information? Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC Inactive hide details for Mathew_Elting---02/18/2010 07:31:29 PM---Hello All, We have been using staf for awhile now to control Mathew_Elting---02/18/2010 07:31:29 PM---Hello All, We have been using staf for awhile now to control a power strip. When I From: mathew_elt...@logitech.com To: staf-users@lists.sourceforge.net Date: 02/18/2010 07:31 PM Subject: [staf-users] RC code 1 Hello All, We have been using staf for awhile now to control a power strip. When I run basic commands on that server I get RC 0 as expected. When I run pmCommand on that server I get rc 1 but the command runs as expected. Two examples below. Any suggestions as to what Return Code 1 would mean here? This at some point was RC 0 but may have changed when we update the os on the power strip. Any help or ideas is greatly appreciated. [evs...@testmgr01 ~]$ staf local process start shell command 'ssh -i /evs/testmgr/ssh/id_dsa evs...@10.250.10.12 "pmCommand 1 status 20"' wait returnstdout Response -------- { Return Code: 1 Key : <None> Files : [ { Return Code: 0 Data : Outlet Name Status Post-on Delay(s) 20 i1A_20 ON 0.5 } ] } [evs...@testmgr01 ~]$ staf local process start shell command 'ssh -i /evs/testmgr/ssh/id_dsa evs...@10.250.10.12 "ls /LocalVar.txt"' wait returnstdout Response -------- { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : /LocalVar.txt } ] } [evs...@testmgr01 ~]$ Mathew Elting Sr. Project Engineer 510-713-4023 Yahoo: mathew.elt...@yahoo.com ------------------------------------------------------------------------------ Download Intel® 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
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Download Intel® 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