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

Reply via email to