Re: capturing output of command line in an array

2007-10-31 Thread amjadcsu
thanks Lee, I would just like to get the "node" in that list. so it would be something like this alist=[node13,node12,node8,node2,node1.] I dont want the whole info is it possible?? On Oct 31, 9:44 am, Lee Capps <[EMAIL PROTECTED]> wrote: > On Oct 31, 2007, at 11:01 AM, [EMAIL PROTECTED] wrot

Re: capturing output of command line in an array

2007-10-31 Thread Gabriel Genellina
En Wed, 31 Oct 2007 19:20:56 -0300, <[EMAIL PROTECTED]> escribió: > I am looking to just get the node name from that info. > I dont need all other info > so my list would be just > alist=[node13,node12,node8,node1 ] > is it possible?? > >> > node13 2 (0/ 56) [ 0.00, 0.00, 0.00] [

Re: capturing output of command line in an array

2007-10-31 Thread amjadcsu
Thanks Lee I am looking to just get the node name from that info. I dont need all other info so my list would be just alist=[node13,node12,node8,node1 ] is it possible?? On Oct 31, 9:44 am, Lee Capps <[EMAIL PROTECTED]> wrote: > On Oct 31, 2007, at 11:01 AM, [EMAIL PROTECTED] wrote: > > > > >

Re: capturing output of command line in an array

2007-10-31 Thread Lee Capps
On Oct 31, 2007, at 11:01 AM, [EMAIL PROTECTED] wrote: > I am trying to execute a command using os.system. this command lists > the number of nodes alive in a cluster. I would like to capture the > output in list/array in python. IS it possible.?/ > > Here is my command > gstat -a > node13 2

capturing output of command line in an array

2007-10-31 Thread amjadcsu
Hi I am trying to execute a command using os.system. this command lists the number of nodes alive in a cluster. I would like to capture the output in list/array in python. IS it possible.?/ Here is my command gstat -a node13 2 (0/ 56) [ 0.00, 0.00, 0.00] [ 0.0, 0.0, 0.1, 99.9,