Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread Network Ninja
valpa wrote: > I'm a net admin for about 20 unix servers, and I need to frequently > telnet on to them and configure them. > It is a tiring job to open a xterm and telnet, username, password to > each server. > > Can I do it automatically by python? After that, there have 20 xterm > consoles open

Re: Clearing pythonwin environment

2006-06-23 Thread Network Ninja
Scott David Daniels wrote: > keep = set(['__builtins__', '__doc__', '__name__', > 'pywin', 'keep', 'item', 'globs']) # Faster to test > globs = globals() > for item in dir(): > if item not in keep: > del globs[item] > del globs, item Thi

Clearing pythonwin environment

2006-06-22 Thread Network Ninja
I want to restart the environment occasionally to default (like I restarted pythonwin). I wrote this script. I know why it doesn't work, cause it deletes my variable (item) on each iteration. My question is: is it possible to do this? What other things might I try? # Reset Pythonwin enviroment #