1752794 Members
6302 Online
108789 Solutions
New Discussion юеВ

Re: background process

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Re: background process

Are "job id" and "process id" two different things ?

Regards,
Shiv
James R. Ferguson
Acclaimed Contributor

Re: background process

Hi Shiv:

Do this:

# sleep 120 &
[1] 21132
# jobs
[1] + Running sleep 120 &

The job number is in brackets; The pid (process ID) is next.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: background process

Hi (again) Shiv:

I guess I should add that the job number is a shorthand way of referring to the background process. Every process has a process ID or 'pid'. This is the kernel's way of tracking the process.

The section titled JOBS in the 'sh_posix' manpages offers more information.

Regards!

...JRF...