Page 1 of 1

How to take the output of command activity stage

Posted: Sat Jul 25, 2009 10:12 am
by bharatmajeti
Hi,
I have a sequencer where a Job activity stage follows a command activity stage. I want to return a value calculated in the shell script(command activity stage) to the job(Job activity) stage as one of the parameter in Job.

I tried to return value from the shell script. but it did not work out. can anybody suggest how to do this.

Posted: Sat Jul 25, 2009 1:36 pm
by chulett
"Did not work out" doesn't really help. Have your script echo your output and then use Stage.$CommandOutput<1> or Convert(@FM,"",Stage.$CommandOutput) in the Job Activity stage.

Output of command activity

Posted: Thu Jul 30, 2009 10:01 pm
by cmunikoti
I was using return.value.when i used command.output it is working

Thanks chulett
:lol:

Posted: Sun Aug 02, 2009 7:46 am
by Sreenivasulu
I am using command output and it works fine. I am using this to get the calculated output generated by the shell script.
What is the difference between return value and command output ?
I thought return value was for success and failure of a shell script

Regards
Sreeni

Posted: Sun Aug 02, 2009 8:05 am
by chulett
Yes, Return Value is for "success or failure". And like you, the OP had their's work fine as well when they switched to using Command Output, which is basically whatever the command echos to "the screen".