SSHCommand icon indicating copy to clipboard operation
SSHCommand copied to clipboard

ENV variables?

Open rgsaura opened this issue 1 year ago • 3 comments

Hi! I'm having trouble executing commands. They need the full path of the executable and this causes some bash scripts to not work at all.

Please consider a solution to solve this 🙏🏼

rgsaura avatar Apr 23 '24 12:04 rgsaura

It's just SSH client. You should have right settings for your SSH user.

AlexxIT avatar Apr 23 '24 12:04 AlexxIT

I'll just give you my experience and you can guess whats going on... 😅

I try both from HA, but the ssh_command. exec_command doesnt work because a program it's not found by ENV... That's my guess, what do you think? All ideas are welcomed!

Thanks for the response

Screenshot 2024-04-24 at 12 50 35 Screenshot 2024-04-24 at 12 51 19 Screenshot 2024-04-24 at 12 52 08

rgsaura avatar Apr 24 '24 10:04 rgsaura

I'll just give you my experience and you can guess whats going on... 😅

I try both from HA, but the ssh_command. exec_command doesnt work because a program it's not found by ENV... That's my guess, what do you think? All ideas are welcomed!

Thanks for the response

Screenshot 2024-04-24 at 12 50 35 Screenshot 2024-04-24 at 12 51 19 Screenshot 2024-04-24 at 12 52 08

What does line 20 and 25 have in your message.sh script? Do you have something like "#!/usr/bin/env bash" in the first line of your sh script?

sigmaenigma avatar Aug 27 '24 21:08 sigmaenigma