Awexe node ssh command is not working

sshclient
Hi Team,
I am executing the ssh commands by using the invoke code activity. But it is not executing the “awexe node” command in the ssh.
Please find the snapshot of the code

Hi @mohankumar.suriyamurthy

Are you getting any specific error message?

Does it make sense for you to try out this activity package, just as a test?

Hi,

I have tried the below activity but,it is not executing the “awexe node” command.

Regards,

Mohan

Hi,

Please find the error from the activity when calling “awexe node”

image001.png

Regards,

Mohan

I see. And just for the sake of full context, the same command will work when you run it from, let’s say Putty?

Yes, it is working fine in putty by manually.

Are other commands working, either with your custom Invoke Code or or the marketplace activity?

Yes, Other commands are working in my custom code activity and market place activity

Maybe this will help:

Hi Maciej,

Could you please share the file and execution of $AW_HOME/site/sosite file

Regards,

Mohan

Can you please help me on this

Unfortunately I don’t know the particular application. The only clue here is that it looks like programmatically creating the new session does not initiate some dependencies required to run the command.

I suppose it could help to run the command to first navigate to the proper directory and only then run the command?