Re: execute commands and return output
- From: Leif K-Brooks <eurleif@xxxxxxxxxxxxx>
- Date: Sat, 10 Sep 2005 11:30:14 GMT
billiejoex wrote:
> Thank you for your help but I'm searching a different way.
> Moreover it doesn't work always (for exaple: try a 'dir' command).
> Because of I'm implementing a remote shell the
> [[os.popen('command').read()]] rapresents the best for me because it can
> also accepts arguments direclty (for example:
> os.popen('netstat -a -n -o').read() and this is a great advantage.
If you really need shell evaluation, try subprocess.Popen('foo',
shell=True) instead.
.
- References:
- execute commands and return output
- From: billiejoex
- Re: execute commands and return output
- From: Leif K-Brooks
- Re: execute commands and return output
- From: billiejoex
- execute commands and return output
- Prev by Date: Re: Why do Pythoneers reinvent the wheel?
- Next by Date: Re: global interpreter lock
- Previous by thread: Re: execute commands and return output
- Next by thread: Re: execute commands and return output
- Index(es):
Relevant Pages
|
|