O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scheduled Execution

In addition to the standard UNIX mechanisms for scheduling the time at which a program will be executed, the shell provides its own internal scheduling mechanisms. The sched and commands can be used to run a process at some future time.

bg

[%%job …]

Puts the specified jobs into the background. Job may be a number, a string, '', '%', '', or '-'.

Example: Suppose you're running a long job and you get bored waiting on it. You don't want to stop it because it has to be run, but you want your terminal back; therefore,

  1. Use the following key sequence: To suspend the job,

    <Ctrl>+Z

  2. To get the command's job number, use the following command:

    jobs

  3. To restart the job in the background, use the following command:

    bg %1

exec command

Executes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required