Hi,
We are using the Execute Command Activity in the sequence. The activity copy the files from one path to another path
If the files not exists in the path.. it shows the warning as
"Controller problem: Unhandled failure (1) encountered executing command cp"
Now my question is:
If the files exists in the path
then process
else we need to write a specific return code(Eg:'xxxx') not the default error message(Unhandled failure )
your help is much appreciated.
Thanks,
Reddy
Execute Command Activity Error
Moderators: chulett, rschirm, roy
Hi,
I ran the job seqn with the above mention command.
this is the command we are using the seqn:
Command : cp
Parameters : /catalog/somtous/bdq-ext/sources-ext/SE000000* #G_REP_IN# 2>/dev/null;
we are getting the same warnings.files doen n't exists in the i/p path
Error is :
1) Executed: cp /catalog/somtous/bdq-ext/sources-ext/SE000000* /interfaces/0B51/in 2>/dev/null;
Reply=1
Output from command ====>
2) Command cp did not finish OK, reply = '1'
3) Controller problem: Unhandled failure (1) encountered executing command cp
in the third message we want to change as "xxxxx"
Please help
I ran the job seqn with the above mention command.
this is the command we are using the seqn:
Command : cp
Parameters : /catalog/somtous/bdq-ext/sources-ext/SE000000* #G_REP_IN# 2>/dev/null;
we are getting the same warnings.files doen n't exists in the i/p path
Error is :
1) Executed: cp /catalog/somtous/bdq-ext/sources-ext/SE000000* /interfaces/0B51/in 2>/dev/null;
Reply=1
Output from command ====>
2) Command cp did not finish OK, reply = '1'
3) Controller problem: Unhandled failure (1) encountered executing command cp
in the third message we want to change as "xxxxx"
Please help
Reddy
To rid of the warning you need uncheck "Log warnings after activities that finish with status other that OK" at Sequencer properties.
After,to write custome messages take Nested condition check if the return value from the command activity is "1" then put one more command activity and use echo command to write your custome message.
This is one workaround.
After,to write custome messages take Nested condition check if the return value from the command activity is "1" then put one more command activity and use echo command to write your custome message.
This is one workaround.
Cheers
Ravi K
Ravi K