|
2012-07-03
, 08:53
|
|
Posts: 283 |
Thanked: 276 times |
Joined on Aug 2011
@ uk or @Pai,Mae Hong Son, Thailand
|
#32
|
A better place to put that command is the if-up.d eg:
/etc/network/if-up.d/00_startreverse.sh
/etc/network/if-down.d/00_stopreverse.sh
Thanks again
-bash4-4.2$ /etc/network/if-up.d/00_startreverse.sh
#!/bin/bash4 # while true; do echo "Running ssh: "`date +"%T, %a (%F)"`; ssh -p 26550 -R 3333:localhost:30550 -Nnqg mydomain.com -l richard ServerAliveInterval=30 sleep 600 done
The Following User Says Thank You to macey For This Useful Post: | ||
Do you have any suggestions what to put in stopreverse.sh.?
Last edited by macey; 2012-07-03 at 07:57.