I answered your same question that you posted on the STAF "Open 
Discussions" forum at 
http://sourceforge.net/projects/staf/forums/forum/104045/topic/4877798.

Note: You only need to post a question in one place as all STAF forums and 
mailing lists are monitored..

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




From:   "manyroles...@yahoo.com" <manyroles...@yahoo.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>, 
Date:   12/12/2011 10:55 AM
Subject:        [staf-users] How do I redirect the output of the process 
started by      STAF to hudson console instantaneously?



Hi All,

I need some urgent help to the following issue:

 I am starting a ruby command from a batch file using STAF.
STAF $TESTMACHINE process start command ruby 
"C:\MyProject\scripts\MasterScript.rb" WAIT SAMECONSOLE RETURNSTDERR 
RETURNSTDOUT WORKDIR "C:\MyProject\scripts"
This batch file is triggered by a Hudson job. But my observation is that 
the print/puts of the ruby files appear in the hudson console only after 
the completion of the execution of the ruby script [Hudson job]. This way 
I can not make out if something is going wrong in the script execution 
unless the job completes.
Also, I understand that if I remove RETURNSTDERR RETURNSTDOUT, the ruby 
script's output is displayed in the STAF console on the target machine. So 
STAF is the one which is sending back the ruby outputs to the hudson 
console.
Now can I use any option with STAF to get the ruby output spontaneously to 
the hudson console?
Thanks for reading this lengthy question :)

Thanks
Sudhindra
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 

provides. You can attend the event by watching it streamed LIVE online. 
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to