Checking Job Status with jobs
Occasionally, you may have multiple jobs running or suspended and need a quick update about the jobs’ status. Using jobs, you can find out whether a job is running, stopped, or waiting for input, as shown in Code Listing 9.6.
Code Listing 9.6. Viewing jobs lets you know which jobs you have suspended and their status.
[ejr@hobbes ejr]$ jobs
[1]- Running ftp calvin.raycomm.com &
[2]+ Stopped (tty input) telnet
[3] Stopped (signal) lynx
→ http://www.raycomm.com/
[ejr@hobbes ejr]$
|
To Check Job Status with jobs:
jobs
At the shell prompt, type jobs. You’ll see a list of the current jobs(that is, processes that you’ve suspended or otherwise controlled) either running or stopped, as shown in Code Listing 9.6. Using the ...
Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.