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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
process × 2645linux × 732
bash × 267
kill × 263
ps × 192
shell × 185
shell-script × 145
memory × 116
process-management × 110
background-process × 107
signals × 98
top × 93
command-line × 91
cpu × 91
kernel × 90
linux-kernel × 90
monitoring × 80
terminal × 79
proc × 75
ubuntu × 68
fork × 61
files × 60
networking × 58
thread × 55
ssh × 53