AlexxIT / SSHCommand

Run any SSH command on remote server from Home Assistant service call
https://github.com/AlexxIT/Blog
MIT License
89 stars 7 forks source link

Can you include the option for a response file? #25

Closed Smarthome-Creator closed 2 months ago

Smarthome-Creator commented 2 months ago

I did some testing and found that your integration allows you to run SSH commands that take longer than 60 seconds and would otherwise be "killed" by HA. That's very cool. Could you add the option to get the "stdout", "stderr" and "exitcode" back? Then you could have the log sent to you in case of problems.

AlexxIT commented 2 months ago

I don't want add this to this integration so it can be used in very old hass versions. But you can use this integration and get what you want https://github.com/AlexxIT/PythonScriptsPro