i'm trying to write a program to write a program to tailor putty session then launch in plink
i was using python and had
code:
for line in open(os.path.dirname(sys.argv[0])+'/sessions/base', 'rU'):
if "ProxyPassword" in line:
line = line.replace("ProxyPassword\\", "ProxyPassword\\" + listy[3] + chr(92)
if "ProxyUsername" in line:
line = line.replace("ProxyUsername\\", "ProxyUsername\\" + listy[2] + chr(92)
and the end of the second if statement is some invalid syntax. how do i avoid it?
( i tried using double slashes but the result was the same)