hi,

my problem is as such...

I am establishing a telnet session to an IP using telnetlib module. I read the free memory on the board using telnet.write("free\n").

after this i call a system command 'snmpwalk' to walk the MIBs of the IP above.


I again need to establish the session and read the free memory on that IP.


what I observe is, the system command(snmpwalk) is executed before the telnet.write.

what can be done to maintain the flow as mentioned above??

well..it was pretty simple....but couldn't get it.
achieved it with time.sleep() after logging and before issue of telnet.write("free\n")
command :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.