I access my Unix server via ssh and I always do the same commands. This is the list of commands (first I login to the server):
cd /etc/openvpnvi log.log/huaze(I'm using search function of vi)- If I found the string / word I then proceed to step 5-up to end, (if I didn't find the string, I just log out)
:q(exiting vi)service openvpn stopservice openvpn start- Log off
As you can see, I want to harness the power of automation and I can accomplish this with a click of a button; unfortunately this is challenging since it's ASP.NET and C# is going to access a Unix ssh protocol. So, how can I accomplish this in the most straightforward way.