Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kyu28 committed Jan 2, 2022
1 parent 3915c17 commit 6568560
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drcli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#drcom 5.2.0(Pt) compatible client for Windows
#drcom Pt compatible client
import requests
import time
import sys
Expand All @@ -12,6 +12,7 @@ def Connect(url):
except:
print("Connection error")

version='0.9'
configFileName='dcacc.txt'
configFile=os.getcwd()+'\\'+configFileName

Expand All @@ -22,6 +23,7 @@ def Connect(url):
ip=f.readline()
portalUrl='http://'+ip[0:-1]+':801/eportal/portal/login?user_account=%2C0%2C'+user[0:-1]+'&user_password='+password[0:-1]
f.close()
print('Drcom Pt compatible client '+version)
while True:
Connect(portalUrl)
time.sleep(60)
Expand Down

0 comments on commit 6568560

Please sign in to comment.