BTW do yourself a favor and learn to use the cmd module: 2 nice examples: http://www.eskimo.com/~jet/python/examples/cmd/
it will also give you command completion if your termianl supports it (most terminals on most linux distros do). -- http://mail.python.org/mailman/listinfo/python-list