Introduction to Unix and Shell Programming by M. G. Venkateshmurthy
Author:M. G. Venkateshmurthy [M. G. Venkateshmurthy]
Language: eng
Format: epub
Publisher: Pearson Education India
Published: 2005-05-01T16:00:00+00:00
7.4.1 Running a Command in the Background
A command is made to run in the background (as a background process) by terminating the command line with an ampersand (&) character as shown in the following example.
$sort âo student.lst student.lst &
567
$
The shell immediately returns the process identification (PID) number as well as the shell prompt $. In the above example, 567 is the PID of the just-submitted background job. As the shell prompt ($) re-appears immedietly, one can now readily work at the terminal.
One should be careful in running background processes as the user may get into problems under certain situations. Some of these problems could be due to any one of the following.
The success or failure of the background processes are not reported. The user has to find it out. For this purpose the identification number is used.
The output has to be redirected to a file as otherwise the display on the monitor gets mixed up.
Too many processes running in the background degrades the overall efficiency of the system.
There is a danger of the user logging out when some processes are still running in the background.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Filmora Efficient Editing by Alexander Zacharias(5769)
The Infinite Retina by Robert Scoble Irena Cronin(5245)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(3968)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3933)
Edit Like a Pro with iMovie by Regit(3419)
Linux Administration Best Practices by Scott Alan Miller(2858)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2835)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2520)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2391)
Docker on Windows by Stoneman Elton(2317)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2312)
Creative Projects for Rust Programmers by Carlo Milanesi(2240)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2107)
Hands-On Linux for Architects by Denis Salamanca(2051)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(2004)
Computers For Seniors For Dummies by Nancy C. Muir(1996)
The Old New Thing by Raymond Chen(1940)
Linux Kernel Debugging by Kaiwan N Billimoria(1762)
