Skip to content

Instantly share code, notes, and snippets.

@Tedezed
Created December 17, 2019 14:06
Show Gist options
  • Save Tedezed/f9a9c5bcfd7dfbf60df1153ca72d0520 to your computer and use it in GitHub Desktop.
Save Tedezed/f9a9c5bcfd7dfbf60df1153ca72d0520 to your computer and use it in GitHub Desktop.

TNCcmdPlus Linux

Software

Execute in Python

https://stackoverflow.com/questions/55374100/is-there-a-way-to-wait-for-a-command-to-be-executed-before-executing-a-new-comm

import subprocess, re
constr =  ['wine', '/home/ubuntu/TNCcmdPlus.exe', 'RUNINFO E', '-i', 'XXX.XXX.XXX.XXX']
p = subprocess.Popen(constr, stdout=subprocess.PIPE)
out, err = p.communicate()
print(re.split("RUNINFO", out)[1])

Install

export WINEPREFIX=~/.wine-demo
wine winecfg 
winetricks vcrun2005 vcrun2010
wine /home/ubuntu/TNCcmdPlus.exe

Usage

wine /home/ubuntu/TNCcmdPlus.exe
CONNECT I XXX.XXX.XXX.XXX
RUNINFO E
DISCONNECT
EXIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment