Matches activity

Hello,

I’m trying to use Matches activity, but have some issues with it. I’m using putty to access a linux machine, i need to get the text from the machine to check the value if it’s correct before sending a new command.

for example, after i use get visible text activity, it gives me this :arrow_down:

login as : log
log@ip’s password:
Last login: Wed May 15 11:32:10 2019 from @ip
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT

TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
<server/log>cd /data/data/folder1/loc/
<server/log>ls -ali file.rec > /dev/null 2>&1;RC=$?;echo RC=$RC
RC=0
<server/log>

So, my question how do i get only "log@ip’s password: " with Matches Activity.

Also the result of this “RC=0” which makes it 0.

It’s seperate matches.

Thanks in advance :smiley:

Hi @mz3bel,

I have built a regex expression for your case, please find it in the attached xaml and check and revert whether it is working or not.

Regards,
Shiva KarthikReference.xaml (5.3 KB)

4 Likes

Hi @Shiva_Karthik

Thank you for your quick response.

I did what you told me, the issue was on the result output and the type of the output.

Problem resolved!

Thank you so much :+1:t2:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.