|
|
07-03-2012
, 04:53 AM
|
|
Posts: 98 |
Thanked: 50 times |
Joined on Aug 2011
@ @uk or @Pai,Mae Hong Son
|
#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



![]() |
| Thread Tools | Search this Thread |
|
Do you have any suggestions what to put in stopreverse.sh.?
Last edited by macey; 07-03-2012 at 03:57 AM.