Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Shells: User's Guide: HP 9000 Computers > Chapter 22 Controlling Jobs

Suspending Jobs

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Job control is supported on Series 300 and Series 800. For HP-UX release 6.5, 7.0, 8.0, and beyond, you can suspend jobs. Suspending a job enables you to stop in the middle of a process and regain control of your terminal for other work. Later, you can resume the job or put it in the background.

Suppose you type in a command line and press Return, but immediately realize this process takes a long time and you need to print another job. If the current susp character is set to ^Z (see stty(1)), you can suspend the current job by pressing:

CTRL-Z

This stops the current job, and returns control of the terminal to ksh.

NOTE: You can set the susp character to ^Z by typing:
stty susp Ctrl -Z  Return 

The du command reports the amount of disk space used by the specified directory, or the current directory if none is specified, as in the following example. This command then pipes the output into the sort command to be sorted and then finally redirects, >, the final output to a file, diskusage, for storage. This operation can take some time. To restart suspended processes, use the fg or bg commands as explained in the next section.

$ du | sort > diskusage
CTRL-Z
[1] + Stopped du | sort > diskusage
$
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-1991 Hewlett-Packard Development Company, L.P.