*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> fg (1)              


fg(1)									 fg(1)

NAME    [Toc]    [Back]

     fg	- run jobs in the foreground

SYNOPSIS    [Toc]    [Back]

     fg	[job_id]

DESCRIPTION    [Toc]    [Back]

     If	job control is enabled (see the	description of set -m),	the fg utility
     will move a background job	from the current environment into the

     Using fg to place a job into the foreground will remove its process ID
     from the list of those "known in the current shell	execution environment.

OPERANDS    [Toc]    [Back]

     The following operand is supported:

     job_id  Specify the job to	be run as a foreground job. If no job_id
	     operand is	given, the job_id for the job that was most recently
	     suspended,	placed in the background or run	as a background	job
	     will be used. The format of job_id	is described in	the entry for
	     job control job ID	in the sh(1) manpage.

STDOUT    [Toc]    [Back]

     The fg utility writes the command line of the job to standard output in
     the following format:

	  "%s\n", <command>

EXIT STATUS    [Toc]    [Back]

     The following exit	values are returned:

     0	 Successful completion.

     >0	 An error occurred.

     If	job control is disabled, the fg	utility	will exit with an error	and no
     job will be placed	in the foreground.

APPLICATION USAGE    [Toc]    [Back]

     The fg utility will not work as expected when it is operating in its own
     utility execution environment because that	environment will have no
     applicable	jobs to	manipulate. See	the APPLICATION	USAGE section for bg.
     For this reason, fg is generally implemented as a shell regular built-in.

SEE ALSO    [Toc]    [Back]

     bg(1), kill(1), jobs(1), sh(1), wait(1).

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
fg Tru64 Runs jobs in the foreground
tcgetpgrp FreeBSD get foreground process group ID
tcgetpgrp NetBSD get foreground process group ID
tcsetpgrp NetBSD set foreground process group ID
tcsetpgrp Tru64 Set foreground process group ID
tcsetpgrp OpenBSD set foreground process group ID
tcgetpgrp Tru64 Get foreground process group ID
tcgetpgrp OpenBSD get foreground process group ID
tcsetpgrp FreeBSD set foreground process group ID
chvt Linux change foreground virtual terminal
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service