If a user runs a process from a terminal, is it possible to tell? Compared to if the process was launch from a program, where that program was launched from a terminal.
The use case is if it's run by the terminal, it will look like this:
suman: suman: suman:
but if it's run by another program x, it could look like this, if x prepends something to stdout/stderr:
x: suman: x: suman:
but I want to detect that, so it just looks like:
x: x: x: