Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1944  / 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
anatta questions
Sun, Jul 17, 22, 07:13, 2 Years ago
Sun, Jun 6, 21, 12:17, 3 Years ago
Sat, Jun 12, 21, 20:43, 3 Years ago
Thu, Jan 13, 22, 20:49, 2 Years ago
Sat, Jun 5, 21, 05:39, 3 Years ago
;