Wrap a function

Joan Miller peloko45 at gmail.com
Thu Jan 28 15:06:04 EST 2010


On 28 ene, 19:54, Steve Holden <st... at holdenweb.com> wrote:
> Joan Miller wrote:
> > On 28 ene, 19:16, Josh Holland <j... at joshh.co.uk> wrote:
> >> On 2010-01-28, Joan Miller <pelok... at gmail.com> wrote:
>
> >>> I've to call to many functions with the format:
> >>>>>> run("cmd")
> >> Check the docs on os.system().
> > No. I've a function that uses subprocess to run commands on the same
> > shell and so substitute to bash scrips. But a script full of run
> > ("shell_command --with --arguments") is too verbose.
>
> So rewrite the script to read the commands from a file and execute them
> one by one?
>
I had thinked about that but the problem is that I would that were
mixed with python code, so can be get the output from a system command
and manipulate it from python



More information about the Python-list mailing list