i do a similar thing, but manually.
since you're using linux, you likely have /usr/bin/expect avalable.
s="""
#!/usr/bin/expect
spawn telnet myServer
expect "Password:"
send "myPassword\r"
expect eof
"""
h=open("tmp.exp")
h.write(s)
h.close()
os.popen("chmod +x tmp.exp; tmp.exp")
##this code...
I've been wondering about python's compile process.
For python benchmark stats, i've heard numbers like 30,40 or 50 times slower than c. This is a bit strange, because much of python could be ported rather directly into c++, which is only marginally slower than c... Is the reason for the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.