I need to start a process in the background and using nohup, and I need to capture the PID of that process. I know that I can use $! to capture the PID of the last process started in the background, but that doesn't work when using nohup.
Any suggestions how to capture the PID when using nohup and running it in the background?
Any suggestions how to capture the PID when using nohup and running it in the background?