Zsh script possibly spinning up new instances of process? [on hold]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I have a little script to choose a vpn config file and run openvpn with it. I'm having a lot of problems lately with too many connections to the service. The limit is 4, but I don't even have 4 devices to connect to it with. So, instead of jumping to conclusions and thinking other people are using my account, I wanted to ask about the script itself. I notice from time to time that openvpn is running in the background after I kill the processes.



Here are the related functions:



vpn () 
while true
do
read "?Enter server name (l to list): " srv

if [[ $srv = "l" ]]
then
echo "Choose from a server"
list_vpn_servers
echo "nn"
else
cd $VPN_CONFIG_LOC
sudo openvpn --config mullvad_$srv.conf
return
fi
done


list_vpn_servers () cut -d '.' -f 2) != "conf" ]]
then
continue
fi
sed -e "s/^$prefix//" -e "s/$suffix$//" <<< $file_name


Any advice about the problem OR the script would be appreciated. Thanks!







share|improve this question











put on hold as off-topic by Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success Aug 2 at 18:02


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 2




    I think that having a "problem" means that it's not yet working as intended, which is a requirement for review. When you've fixed the problem, then it should be very welcome here.
    – Toby Speight
    Aug 2 at 14:36

















up vote
0
down vote

favorite












I have a little script to choose a vpn config file and run openvpn with it. I'm having a lot of problems lately with too many connections to the service. The limit is 4, but I don't even have 4 devices to connect to it with. So, instead of jumping to conclusions and thinking other people are using my account, I wanted to ask about the script itself. I notice from time to time that openvpn is running in the background after I kill the processes.



Here are the related functions:



vpn () 
while true
do
read "?Enter server name (l to list): " srv

if [[ $srv = "l" ]]
then
echo "Choose from a server"
list_vpn_servers
echo "nn"
else
cd $VPN_CONFIG_LOC
sudo openvpn --config mullvad_$srv.conf
return
fi
done


list_vpn_servers () cut -d '.' -f 2) != "conf" ]]
then
continue
fi
sed -e "s/^$prefix//" -e "s/$suffix$//" <<< $file_name


Any advice about the problem OR the script would be appreciated. Thanks!







share|improve this question











put on hold as off-topic by Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success Aug 2 at 18:02


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 2




    I think that having a "problem" means that it's not yet working as intended, which is a requirement for review. When you've fixed the problem, then it should be very welcome here.
    – Toby Speight
    Aug 2 at 14:36













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a little script to choose a vpn config file and run openvpn with it. I'm having a lot of problems lately with too many connections to the service. The limit is 4, but I don't even have 4 devices to connect to it with. So, instead of jumping to conclusions and thinking other people are using my account, I wanted to ask about the script itself. I notice from time to time that openvpn is running in the background after I kill the processes.



Here are the related functions:



vpn () 
while true
do
read "?Enter server name (l to list): " srv

if [[ $srv = "l" ]]
then
echo "Choose from a server"
list_vpn_servers
echo "nn"
else
cd $VPN_CONFIG_LOC
sudo openvpn --config mullvad_$srv.conf
return
fi
done


list_vpn_servers () cut -d '.' -f 2) != "conf" ]]
then
continue
fi
sed -e "s/^$prefix//" -e "s/$suffix$//" <<< $file_name


Any advice about the problem OR the script would be appreciated. Thanks!







share|improve this question











I have a little script to choose a vpn config file and run openvpn with it. I'm having a lot of problems lately with too many connections to the service. The limit is 4, but I don't even have 4 devices to connect to it with. So, instead of jumping to conclusions and thinking other people are using my account, I wanted to ask about the script itself. I notice from time to time that openvpn is running in the background after I kill the processes.



Here are the related functions:



vpn () 
while true
do
read "?Enter server name (l to list): " srv

if [[ $srv = "l" ]]
then
echo "Choose from a server"
list_vpn_servers
echo "nn"
else
cd $VPN_CONFIG_LOC
sudo openvpn --config mullvad_$srv.conf
return
fi
done


list_vpn_servers () cut -d '.' -f 2) != "conf" ]]
then
continue
fi
sed -e "s/^$prefix//" -e "s/$suffix$//" <<< $file_name


Any advice about the problem OR the script would be appreciated. Thanks!









share|improve this question










share|improve this question




share|improve this question









asked Aug 2 at 14:31









user869075

1




1




put on hold as off-topic by Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success Aug 2 at 18:02


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success
If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success Aug 2 at 18:02


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Toby Speight, Sam Onela, Stephen Rauch, yuri, 200_success
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 2




    I think that having a "problem" means that it's not yet working as intended, which is a requirement for review. When you've fixed the problem, then it should be very welcome here.
    – Toby Speight
    Aug 2 at 14:36













  • 2




    I think that having a "problem" means that it's not yet working as intended, which is a requirement for review. When you've fixed the problem, then it should be very welcome here.
    – Toby Speight
    Aug 2 at 14:36








2




2




I think that having a "problem" means that it's not yet working as intended, which is a requirement for review. When you've fixed the problem, then it should be very welcome here.
– Toby Speight
Aug 2 at 14:36





I think that having a "problem" means that it's not yet working as intended, which is a requirement for review. When you've fixed the problem, then it should be very welcome here.
– Toby Speight
Aug 2 at 14:36
















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Greedy Best First Search implementation in Rust

Function to Return a JSON Like Objects Using VBA Collections and Arrays

C++11 CLH Lock Implementation