The return status is zero unless it is run when job control is not enabled, or, when run with job control enabled, if jobspec was not found or jobspec specifies a job that was started without job control. If jobspec is not supplied, the current job is used. Resume the suspended job jobspec in the background, as if it had been started with `&'. If the `-x' option is supplied, jobs replaces any jobspec found in command or arguments with the corresponding process group ID, and executes command, passing it arguments, returning its exit status. If jobspec is not supplied, the status of all jobs is listed. If jobspec is given, output is restricted to information about that job. List only the process ID of the job's process group leader. List process IDs in addition to the normal information.ĭisplay information only about jobs that have changed status since the user was last notified of their status. To resume Firefox in the background, execute bg %1īelow are all options that can be used with job control: To bring the first program started in the background – Firefox, to the foreground and then suspend the process, execute Executing the jobs command displays all running jobs started in the background. In the screen shot below, Firefox and Terminal server client applications were started in the background. If you want to open another program or run a script, you can enter the command follow by &įor longer running programs started in the background, which do not need user input, job control commands can be executed that can show status, suspend, bring a program to the foreground, and return to background. From the command line you would type:įirefox will open in the background and the terminal window control will be returned allowing you to continue working in the terminal window. To use job control and allow programs to return control back to the terminal window, commands entered should be followed with the ampersand character &įor example, you want to open Firefox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |