Re: Storing Subprocess Results

2008-09-02 Thread topazcode
On Sep 2, 6:31 pm, Karthik Gurusamy <[EMAIL PROTECTED]> wrote: > On Sep 2, 7:16 am, topazcode <[EMAIL PROTECTED]> wrote: > > > I am using the subprocess module to run some shell commands on a Linux > > system: > > > import subprocess > > output = subprocess.call('''ssh server1 "uptime"''', shell=Tr

Re: Storing Subprocess Results

2008-09-02 Thread Karthik Gurusamy
On Sep 2, 7:16 am, topazcode <[EMAIL PROTECTED]> wrote: > I am using the subprocess module to run some shell commands on a Linux > system: > > import subprocess > output = subprocess.call('''ssh server1 "uptime"''', shell=True) > > The above assigns the output variable with a return code, i.e. 0 in

Re: Storing Subprocess Results

2008-09-02 Thread Benjamin Kaplan
On Tue, Sep 2, 2008 at 10:16 AM, topazcode <[EMAIL PROTECTED]> wrote: > I am using the subprocess module to run some shell commands on a Linux > system: > > import subprocess > output = subprocess.call('''ssh server1 "uptime"''', shell=True) > > The above assigns the output variable with a return

Re: Storing Subprocess Results

2008-09-02 Thread Wojtek Walczak
On Tue, 2 Sep 2008 07:16:21 -0700 (PDT), topazcode wrote: > I am using the subprocess module to run some shell commands on a Linux > system: > > import subprocess > output = subprocess.call('''ssh server1 "uptime"''', shell=True) > > The above assigns the output variable with a return code, i.e. 0