> Notice, how lightdm was not present on Dennis machine when file created, then it comes up and dissapears.
Maybe lightdm was actually running. This would be possible:
- ps logs running processes (started by my script)
- lightdm starts and creates .goutputstream*
- next run of ps
But it could also be possible, that lightdm was started later. I will repeat this test and comment later again.
> How do you know it runs with userid 1000? How to check it on my computer?
In my script:
> ps -o comm -U 1000 -u 1000 >> ps-log.out
man ps
> -U userlist Select by real user ID (RUID) or name.
> -u userlist Select by effective user ID (EUID) or name.
So this command only logs processes running with real or effective UID 1000. That is the UID of the user created at installation.
> Notice, how lightdm was not present on Dennis machine when file created, then it comes up and dissapears.
Maybe lightdm was actually running. This would be possible:
- ps logs running processes (started by my script)
- lightdm starts and creates .goutputstream*
- next run of ps
But it could also be possible, that lightdm was started later. I will repeat this test and comment later again.
> How do you know it runs with userid 1000? How to check it on my computer?
In my script:
> ps -o comm -U 1000 -u 1000 >> ps-log.out
man ps
> -U userlist Select by real user ID (RUID) or name.
> -u userlist Select by effective user ID (EUID) or name.
So this command only logs processes running with real or effective UID 1000. That is the UID of the user created at installation.