Some Python things
execute shell commands from within python
import commands (s, o) = commands.getstatusoutput('ls') print s print o
Where s holds the status and o the output of the command.
--
DerSchrecklicheSven
- 18 Mar 2005
This topic: Main
>
DerSchrecklicheSven
>
AthenaStuff
>
PyThon
Topic revision: r1 - 2005-03-18 - AndreasWildauer
Copyright &© 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use
Discourse
or
Send feedback