Background Process - Example

Example

In this example running on Debian GNU/Linux, the sleep utility was launched into the background. Afterward, the ps tool was run in the foreground, where it output the below text. Both were launched from an instance of the bash shell. The TPGID header indicates the foreground process group of the listed process, and the PGID is the process' group ID.

PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND ... 1 3537 3537 3537 tty2 1311 Ss 0 0:00 /bin/login -- 3537 463 463 3537 tty2 1311 R 1000 0:00 \_ -bash 463 1245 1245 3537 tty2 1311 S 1000 0:00 \_ sleep 300 463 1311 1311 3537 tty2 1311 R+ 1000 0:00 \_ ps axjf ...

Read more about this topic:  Background Process

Famous quotes containing the word example:

    Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.
    Marcel Proust (1871–1922)