Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very new to Python world
#1
I am very new to Python and I would like to wright a script to allow openVpn to open a connection buy a customer number and pull the site key from a folder with the correct customer.


#Open VPN exe file loction#
ovpne= "c:\program files\OpenVPN\OpenVPN.exe"
#OpenVPN config file loction#
ovpnc= "c:\users\client.ovpn"
#List of sites#
site= 0001, sitename, siteIP, Port 1194 pull keys from c:\customer\0001\keys
site= 0002, sitename, siteIP, Port 1194 pull keys from c:\customer\0002\keys
site= 0002, sitename, siteIP, Port 1194 pull keys from c:\customer\0003\keys
A coworker wrote a program in C# But it does not pull new keys always the same key from a text file.
looking over all option they said i should just start over with python. not sure where to start
Any and all help would be appreciated. I can get old C# files if needed.
Larz60+ write Jun-25-2021, 07:47 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hello World! rufenghk 0 933 Jun-02-2022, 09:48 PM
Last Post: rufenghk
  Help | Classes to use in real world soothsayerpg 9 4,061 Jul-08-2019, 07:30 PM
Last Post: nilamo
  running python hello world Avarage_Joe 8 5,203 Apr-13-2018, 04:20 PM
Last Post: Avarage_Joe
  Hello world! program, window disappears nerio 3 5,568 Mar-16-2018, 07:03 PM
Last Post: knackwurstbagel
  'Hello, World!' Problem - Urgent OmarSinno 7 4,470 Sep-07-2017, 06:22 AM
Last Post: OmarSinno
  how to generate random 3d world (like minecraft) in python hsunteik 3 88,891 Jan-06-2017, 06:35 PM
Last Post: metulburr
  Hello World issues when using %% with ipython landlord1984 5 8,776 Dec-11-2016, 10:11 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020