Doc Chacha
Dabbler
- Joined
- Sep 18, 2016
- Messages
- 28
Hi all,
I read a lot of posts here, related to my problem, but could not find a solution. So....
Here's the setting:
I need to have another computer running tinycore linux turned off when my Truenas shuts down.
The only way I can do it remotely is by sending a command over ssh.
ssh user@host 'pcp sd'
I set up a keypair based authentication, so password is not a problem.
When I run my command from shell, it works. But when I try to use it via Tasks->Startup/Shutdown scripts, it does not work.
I tried:
-use type "command" with my command line, both with and without full path to ssh command
-create a small script with my command in it, both with and without full path to ssh command and invoke this script with tasks->startup(...)
In my script I inserted a "mkdir" command, in order to check that the script is indeed run at shutdown. Which is the case.
Could it be because the script is not ran as root ? So the ssh keypair would not be used and the ssh command would fail ?
I have no idea what to try next... If anyone has an hint ...
Thank you for your help !
Thomas
I read a lot of posts here, related to my problem, but could not find a solution. So....
Here's the setting:
I need to have another computer running tinycore linux turned off when my Truenas shuts down.
The only way I can do it remotely is by sending a command over ssh.
ssh user@host 'pcp sd'
I set up a keypair based authentication, so password is not a problem.
When I run my command from shell, it works. But when I try to use it via Tasks->Startup/Shutdown scripts, it does not work.
I tried:
-use type "command" with my command line, both with and without full path to ssh command
-create a small script with my command in it, both with and without full path to ssh command and invoke this script with tasks->startup(...)
In my script I inserted a "mkdir" command, in order to check that the script is indeed run at shutdown. Which is the case.
Could it be because the script is not ran as root ? So the ssh keypair would not be used and the ssh command would fail ?
I have no idea what to try next... If anyone has an hint ...
Thank you for your help !
Thomas