Page 2 of 2

Posted: Thu Oct 14, 2010 4:45 am
by adityavarma
the problem is with the below command in the execute command activity.
Command: cat
Parameters: <filename>


The output of this command is giving one extra line in the output because fo which the trigger is not able to pick it

is there any way in the execute command activity to ignore that line and to display the output command in only one line.

Regards,
Aditya

Posted: Thu Oct 14, 2010 5:04 am
by swathi Singamareddygari
When you execute any unix command there will be Field marker at the end of the output,so try converting it to empty in user variable avtivity.

Convert(@FM,'',Command.output) and use this output to your job.

Posted: Thu Oct 14, 2010 5:23 am
by chulett
Which is exactly what I posted earlier. My syntax should have worked for that as well as the EReplace() as long as the correct syntax is used. :wink:

Posted: Thu Oct 14, 2010 5:37 am
by adityavarma
Thank you all.

The issue is resolved now.

But still one more issue is there , i am not able to pass the parameters to execute command acitivity from the Parameter set.

Is this not poosible in the execute command acitivity.

Posted: Thu Oct 14, 2010 7:49 am
by chulett
Post your syntax.

Posted: Mon Oct 18, 2010 10:58 pm
by adityavarma
Convert(@FM,'', Exec_batch_STATUS.$CommandOutput) = "SUCCESS"

Posted: Mon Oct 18, 2010 11:39 pm
by chulett
I was looking for the syntax for this:
adityavarma wrote:But still one more issue is there , i am not able to pass the parameters to execute command acitivity from the Parameter set.

Posted: Mon Oct 18, 2010 11:47 pm
by adityavarma
Craig,

Two days back, i am unable to pass in the parameters from the Parameter set to the execute command activity for the cat command.


But now i am able to pass the parameters from the parameter set.

Dont know how yesterday i am able to pass the parameters from the paramert set and why i didnot get them the day before??

It is very strange for me..... :?

Posted: Tue Oct 19, 2010 7:20 am
by chulett
OK... then I guess we really are resolved here now. :wink: