Re: same ssh command is being executed again (128 Views)
Reply
Advisor
avaz_1
Posts: 15
Registered: ‎08-24-2010
Message 1 of 3 (169 Views)
Accepted Solution

same ssh command is being executed again

Hi All,

 

I am using HP OO 9.07.

 

I am authoring a OO Flow to be executed on a Rhel Linux target host.

The Flow has 3 operations as described below.

 

First operation to ftp the scripts to the target machine

Second operation to run a a pre-req script that does some pre-req settings

Third operation to run the install script that installs a application

 

I am using SSH command to run the Second and Third operations.

 

But to my surprise, the command that i am running in Second operation gets executed again in the Third Operation.

 

No idea why is this happening.

 

I also tried with Remote Commad operation. Here also same result.

 

Can someone please help me?  I am struggling to solve this from few days.

 

Thanks,

Ashraf

 

Please use plain text.
Valued Contributor
Dimiter Todorov
Posts: 104
Registered: ‎03-02-2010
Message 2 of 3 (157 Views)

Re: same ssh command is being executed again

Seen this before,

 

The SSH or remote command operations will always try to find the "command" variable first before using any constants you define. If you are putting in multiple operations of the same kind the command input from the first operation will by default be passed to the next.

 

To change this behaviour. Open the command flow variable, then under "Assign From Variable"  select not assigned. Then use the constant string that you like.

 

Alternatively, you could create custom command names within your flow and assign from those.

 

Whenever a sub-flow or operation runs, it will pass on any variables that it had to the next step.

 

D

Please use plain text.
Advisor
avaz_1
Posts: 15
Registered: ‎08-24-2010
Message 3 of 3 (128 Views)

Re: same ssh command is being executed again

Yes this was the issue.

Thanks a lot.

 

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation