Hot answers tagged

1 vote

Discover the PID of a child process before it starts or after it finished

If you run exec "$programName" > "$logFolder/${programName}_$$.log" 2>&1 then the program will be executed in the same $$ process. That obviously will be the last thing ...
Stéphane Chazelas's user avatar
1 vote

Process appears with square brackets ([]) around name after being SIGKILL'd

The short answer is in the ps man page: Sometimes the process args will be unavailable; when this happens, ps will instead print the executable name in brackets. What this means is that the procps ...
Craig Small's user avatar
1 vote

What after exec() in ls command: Is the parent process printing the output to the console or the child?

Strictly speaking neither of parent and child do the actual output to the screen; instead the operating system kernel (specifically the tty driver) does the output. The processes only send the data to ...
U. Windl's user avatar
  • 1,224

Only top scored, non community-wiki answers of a minimum length are eligible