download: nullShell.py
#!/usr/bin/python2.3
# nullShell -- ejemplo de uso de un ciclo while

def nullShell():
	cmd=""
	while True:
		cmd=raw_input("comando> ")
		if cmd == "exit":
			break
		else:
			print "no se puede ejecutar el comando: " + cmd 

nullShell() 

Copyleft 2006 Juanjo Conti