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
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
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
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