Re: Best command for running shell command

2006-07-11 Thread iapain
> where I'm not interested in the output, I only want to make sure that the > command was executed OK. How should I invoke this (in a Unix/linux > environment)? Remember few things about executing program within python 1. Create a subprocess or child process and execute it. 2. You should use "Time

Re: Best command for running shell command

2006-07-11 Thread Thomas Nelson
Yes, I highly recommend the subprocess module. subprocess.call() can do almost anything you want to do, and the options are all pretty intuitive Whenever I need to write quick scripts for myself, it's what I use. THN Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Donald Duck <[EMAIL PRO

Re: Best command for running shell command

2006-07-11 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Donald Duck <[EMAIL PROTECTED]> wrote: > I'm a little bit confused about what is the best way to run a shell command, > if I want to run a command like > > xx -a -b > yy > > where I'm not interested in the output, I only want to mak

Best command for running shell command

2006-07-11 Thread Donald Duck
I'm a little bit confused about what is the best way to run a shell command, if I want to run a command like xx -a -b > yy where I'm not interested in the output, I only want to make sure that the command was executed OK. How should I invoke this (in a Unix/linux