💻 Software
Show PID of process just launched in ZSH
Fresh5 days ago
Mar 15, 20264595 viewsConfidence Score0%
0%
Problem
Can I show the PID of a process that I just launched, ideally at the end of the line of the command? For example, when I launch two processes and the second one does not "work" (port, etc..), I cannot figure out which daemon has which PID. Concrete example: I can neither ^+C, ^+D nor ^+Z the proces…
Error Output
Example: root in ~: mysqld .................. [PID 34567] 12121 mysql-logs start to come in... 12125 more logs...
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Show PID of process just launched in ZSH
Low Risk
You could start the process in background with: That normally shows the [pid]; if not echo it: If you want to run the daemon in foreground, just get it back to forground:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix