From: Parag M. <rea...@gm...> - 2013-05-09 06:35:15
|
Is there any mechanism where for some execution of long running scripts can redirect their stdouts/stderror to the system issuing the command ? e.g STAF HOST1 PROCESS START SHELL "SomeLongScript.sh" WAIT RETURNSTDOUT RETURNSTDERR - showing the the output "as is it" comes to terminal ? just like you execute via SSH using command e.g ssh user@HOST1 SomeLongScript.sh I observe that in case of staf the remote buffer are obtained only when command exits. but end user cannot gauge if things are happening fine via script. I can see one way of modifying "SomeLongScript.sh" to generate message in form of queue to calling machine. But that cannot be feasible all the times. can some solution like REDIRECT be a solution. Also if there is any solution already existing, please share as I see lots of forum seeking for help. |