Zsh script possibly spinning up new instances of process? [on hold]
Clash 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!
zsh
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
add a comment |Â
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!
zsh
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
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
add a comment |Â
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!
zsh
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!
zsh
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
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
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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