Jump to content

Calimero

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Calimero

  1. Ken-ji, you are totally right. I will do this change this of course. First, i struggled with these two problemes:

    1. How to start a script, in the background, to open a tunnel (forever).

    2. Go-Script or User-Scripts.

     

    For for now, i think with the go file it working. 

  2. New to unraid.

     

    I have a command like this: 

    ssh -R 8000:XX.XX.XX.XX:8000 [email protected]

    If i write this command in the Terminal window in unraid it works, obviously.

    But if i close this Terminal window in unraid, this tunnel is closed, obviously.

     

    Is there any tool to fire this event...

    ... in the background

    ... at a start of unraid system?

     

    I came across the User-Scripts Plugin and tried to fix this problem with script like that

    #!/usr/bin/expect -f
    
    spawn ssh -N -R 8000:XX.XX.XX.XX:8000 [email protected] &
    expect "Password:*"
    send "XXXXX\r"
    
    expect eof
    exit

    And it works, but not "really" in the background. The tunnel cannot be open...

     

    Maybe i just forgot something in the script or just can use another Tool... I don't know.

×
×
  • Create New...