Allen Fowler wrote: > Thank you for the help. :) > > ----- Original Message ---- > > simplest way to run external commands ! > > import os > cmd="/usr/bin/ssh 10.0.0.20 <http://10.0.0.20> uptime" > os.popen(cmd) This is deprecated in python 2.5+. Use subrpocess instead of os.popen to make sure your code continues to work in the future. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
- [Tutor] Correct way to call an outside program? Allen Fowler
- Re: [Tutor] Correct way to call an outside program? Alan Gauld
- Re: [Tutor] Correct way to call an outside program? Kent Johnson
- Re: [Tutor] Correct way to call an outside prog... linuxian iandsd
- Re: [Tutor] Correct way to call an outside program? Allen Fowler
- Re: [Tutor] Correct way to call an outside prog... Luke Paireepinart