SSH Shell Operation - how should I define the command?

Hi everybody,

I am dealing with "SSH Shell" Operation trying to figure out how could I use it in a flow for my purposes...

I am not sure I understood how the "command" input should be specified.

From the description of the operation I read:

command - The commands to execute. This should be made up of 'send <command>' and 'expect <regular expression>' statements separated by newlines.

But from a flow of example (available within the installation) SSH Shell Session Sharing Example I am not able to understand how the "expect" part of the command are used.

For example, I see that in the example flow, the first occurence of the SSH Shell step has the following command (in 3 lines):

expect (.*\s*)*?
send export HPOO=yes
expect (.*\s*) [\$#]$


Why does it start with an expect??

and what should be supposed to match the 1st regex (.*\s*)*? ... ??


Any help would be appreciated.

Thank you in advance




Parents Reply
  • Hi,

    Thanks for the solution in continouation with above i have query i.e

    actually i need to pass command like agentid count 500 then it displays 500 agentid's.

    in this i need to get only one id by pressing F7. How can i get this.

    here i am trying like this 

    send list agent-loginID 6210000 count 500
    expect (.*\s*)*?/AGENT LOGINID 
    send F7
    expect (.*\s*)*?/AGENT LOGINID

    pls correct me.Thanks in advance.