- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- background process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 01:18 PM
тАО02-14-2006 01:18 PM
thanks,
shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 01:28 PM
тАО02-14-2006 01:28 PM
Re: background process
to move the job to background do
bg
to move the job to foreground run
fg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 02:32 PM
тАО02-14-2006 02:32 PM
Re: background process
You can use "bg" and "fg". You can take a look at the man pages for more information.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 02:39 PM
тАО02-14-2006 02:39 PM
SolutionThis link provides with Monitoring and Tracing Unix Processes on various Unix OS.
http://www.idevelopment.info/data/Unix/General_UNIX/GENERAL_MonitoringandtracingUnixprocesses.shtml
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 03:13 PM
тАО02-14-2006 03:13 PM
Re: background process
to know the process running in background on unix machines, refer this link;
http://www.unixguide.net/unix/faq/3.7.shtml
And fg and bg are the commands to shift process between background and foreground.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 03:22 PM
тАО02-14-2006 03:22 PM
Re: background process
You have to find the job number using job command. Then, You can do the following
To put the #999 job in the background
# bg %999
To would bring it back in the foreground.
# fg %999
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 03:52 PM
тАО02-14-2006 03:52 PM
Re: background process
below more information on fg and bg:
fg [%
and
bg [%
The fg command can be used to restart the execution of a suspended or backgrounded command or program in foreground mode. With no arguments, the fg command causes the current job (the one shown in the output of the jobs command with a + sign next to it) to be resumed in foreground mode. The program will take control of your terminal, just as though you'd originally run it in the foreground. As always, you can resuspend the process by pressing CTRL-Z.
With a single argument consisting of a percent sign (%) and the job index of a backgrounded or suspended job (as listed by the jobs command), the fg command brings the specified process to the foreground, resuming it if it was previously suspended.
The bg command is analogous to the fg command, but allows you to resume a suspended process in background mode, rather than foreground mode. Like the fg command, the bg command will accept a single argument consisting of a percent sign and a job index, or, with no arguments, will operate on the current job.
In the example below, our YD resumes running his second terminal emulator window in the background, and resumes reading the manual page for the C shell in the foreground:
[18] YD@MYSERVER# jobs
[1] + Stopped man csh
[2] - Stopped /usr/bin/X11/xterm
[3] - Running /usr/bin/X11/xterm
[19] YD@MYSERVER# bg %2
[1] + Running /usr/bin/X11/xterm
[20] YD@MYSERVER# jobs
[1] - Stopped man csh
[2] + Running /usr/bin/X11/xterm
[3] - Running /usr/bin/X11/xterm
[21] YD@MYSERVER# fg %1
man csh
.
.
.
Note that the shell automatically prints a reminder message after each bg or fg command, to let you know what process has been resumed.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 04:54 PM
тАО02-14-2006 04:54 PM
Re: background process
# sleep 100&
# bg
# fg
it will give you the details.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 05:15 PM
тАО02-14-2006 05:15 PM
Re: background process
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 05:21 PM
тАО02-14-2006 05:21 PM
Re: background process
# man sh-posix
will give you all the details.
-Arun