Re: Only getting the first 6 lines

2015-10-02 Thread Cecil Westerhof
On Friday 2 Oct 2015 09:37 CEST, Peter Otten wrote: > Cecil Westerhof wrote: > >> I want to get the first 6 lines of ps output. For this I use: >> >> from subprocess import check_output >> >> ps_command = ('ps', '-eo', >> 'u

Re: Only getting the first 6 lines

2015-10-02 Thread Cecil Westerhof
On Friday 2 Oct 2015 00:50 CEST, Cameron Simpson wrote: > On 01Oct2015 23:58, Cecil Westerhof wrote: >> I want to get the first 6 lines of ps output. For this I use: >> >> from subprocess import check_output >> >> ps_comman

Re: Only getting the first 6 lines

2015-10-02 Thread Peter Otten
Cecil Westerhof wrote: > I want to get the first 6 lines of ps output. For this I use: > > from subprocess import check_output > > ps_command = ('ps', '-eo', 'user,pid,pcpu,pmem,stat,start,time,cmd', > '--sort') message = '\

Re: Only getting the first 6 lines

2015-10-01 Thread Cameron Simpson
On 01Oct2015 23:58, Cecil Westerhof wrote: I want to get the first 6 lines of ps output. For this I use: from subprocess import check_output ps_command = ('ps', '-eo', 'user,pid,pcpu,pmem,stat,start,time,cmd', '--sort') me

Re: Only getting the first 6 lines

2015-10-01 Thread Ian Kelly
On Thu, Oct 1, 2015 at 3:58 PM, Cecil Westerhof wrote: > I want to get the first 6 lines of ps output. For this I use: > > from subprocess import check_output > > ps_command = ('ps', '-eo', 'user,pid,pcpu,pmem,stat,start,time