Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1943  / 2 Years ago, tue, january 11, 2022, 5:38:35

I have a program that runs on Ubuntu (14.04) whether I am in the terminal or not. This program relies on a vpn connection, for which I am using vpnc (cisco).



I have added vpnc to my reboot and start up processes, and my program works fine when I reboot (and soon thereafter log in to the terminal). But when I exit the terminal, I lose the vpn connection and the program throws an exception.



Can anyone help me figure out how to keep the vpn connection running even after I log out of the terminal?


More From » networking

 Answers
7

You need to start vpnc using nohup. See this question.



For example to start command and to redirect its output to command.log use:



nohup command > command.log &


If you want to see the output use:



tail -f command.log

[#24920] Wednesday, January 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anatta

Total Points: 326
Total Questions: 128
Total Answers: 96

Location: Jordan
Member since Sun, Jun 26, 2022
2 Years ago
;