Re: [Lazarus] Process differences

2021-10-20 Thread Steve Gatenby via lazarus

(mis-directed earlier reply - sorry about that)

Thanks Denis - will try that.

will also check my user rights as Juha suggested as well

gotta be something my end :)


On 19/10/21 19:36, Denis Kozlov wrote:
On Tue, 19 Oct 2021 at 05:58, Steve Gatenby via lazarus 
 wrote:


Hoping someone could shed some light on why different results on
the following code :)

There is a peculiar truncation at around 80 characters in your second 
example. The output might be getting broken down into multiple lines.


You might want to inspect the raw content of the sData variable before 
dumping it into a text file.


Also, try changing this line:
> slTemp.Add(sData);

To this line:
> slTemp.Text := sData;

Denis
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Process differences

2021-10-19 Thread Denis Kozlov via lazarus
 On Tue, 19 Oct 2021 at 05:58, Steve Gatenby via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Hoping someone could shed some light on why different results on the
> following code :)
>

There is a peculiar truncation at around 80 characters in your second
example. The output might be getting broken down into multiple lines.

You might want to inspect the raw content of the sData variable before
dumping it into a text file.

Also, try changing this line:
> slTemp.Add(sData);

To this line:
> slTemp.Text := sData;

Denis
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Process differences

2021-10-19 Thread Juha Manninen via lazarus
On Tue, Oct 19, 2021 at 7:58 AM Steve Gatenby via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Hoping someone could shed some light on why different results on the
> following code :)
>

My guess is that a GTK2 session adjusts user and group rights somehow.
When I run your command 'ps -eo pid:1,cpu:1,cgroup' in a console, I get
many output lines. Very different from your output.
I did not study what the parameters do exactly.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus