Run command on init and restart on errors
Posted
by
chersanya
on Super User
See other posts from Super User
or by chersanya
Published on 2012-10-04T18:49:10Z
Indexed on
2012/10/05
9:40 UTC
Read the original article
Hit count: 172
I have internet access on my PC through proxy through SSH, so every time I need to execute ssh -L PORT:SERVER:PORT LOGIN@SERVER
and then type a password. After each network failure or reconnect this command has to be executed again. I've got bored of it and look for a way to do this automatically: first run this after boot (it doesn't seem to be a problem - put this command in some init file and that's all) and then rerun it (if possible, then type password) on each network failure. Is it possible, and how?
OS Linux (Debian)
© Super User or respective owner