how to connect with ssh shell then launch command to use tail ...

how to connect with ssh shell then launch command to use tail ...

avatar

Hello,

I made a SSH SHELL connexion to my server.
it works fine.

Now I try to automatically use a command after login and I don't find how to do it.

The command : tail -fn 1000 /xxx/log/yyy/catalina.out

I tried to add my command in Event > After Open



but then I have :

unable to execute the command line [#tail"] with argument [-fn 1000 /xxx/log/yyy/catalina.out

is it possible to automatically use a command after login ?
I don't find where to put it

49455ea1-510f-4ab8-9b4a-54a3dce80303.png

All Comments (4)

avatar

Hello,

Which RDM version are you using?

Instead of the Event section, add the command in the Post login section, located in General


Regards,
Min

37624f00-ba73-458f-afba-3cfe96422c03.png

avatar

hello,


i'm using version 2023.3.39.0 64-bit

I already tried to add a command in "post login" as seen below but when I launch my shell, nothing happens, it just open a "ssh shell" (picture 2).
What do I do wrong ?






62505baf-2168-4f02-b1bb-a4eca84be148

ed709d47-c00b-4545-bd4e-1a6fad3de59b.png

62505baf-2168-4f02-b1bb-a4eca84be148.png

3ba62d25-7e74-4273-9ad4-6d65081f4105.png

avatar

Hello,

Please remove the data in Expected Prompt:


Regards,
Min

ced2107f-00d5-4ac8-b641-a7d71bb994f5.png

avatar

wow thank you!
it works.

regards,