Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/shell/jobz1.2.1.html
Дата изменения: Fri Jan 17 12:43:21 1997
Дата индексирования: Tue Oct 2 00:47:13 2012
Кодировка:

Поисковые слова: magnetic north
Example of suspending a foreground process

Example of suspending a foreground process

To suspend a foreground process:

   find / -name *.c -print
   find: cannot read /dev/diag
   ...
   ^Z
   [1]+  Stopped                 find / -name *.c -print
   ps
   22926 p9 S     0:03 -Tcsh (Tcsh)
   29857 p9 T     0:00 find / -name *.xdh -print
   29859 p9 R     0:00 ps
   mail tony < memo.txt

The user enters a command to find files with the extension .xdh starting at the root directory.

Realising that this process will take a long time to run they stop it while they do something else.

They check to see that the process still exists: it does. They then send some mail to the user tony. Now they can restart the process again in the foreground or run it as a background job.


[Home] [Search] [Index]