- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stopping / terminating the process and viewing sto...
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
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
тАО03-19-2009 04:38 AM
тАО03-19-2009 04:38 AM
In linux we can use following commands to do
1) to stop the process:
press "ctrl+z"
2) to terminate immediately:
press "ctrl+c"
3) to view the stopped jogs:
# jobs
4) to run the stopped jobs in fore ground:
# fg jobno
5) to run the stopped jobs in back ground:
# bg jobno
6) to start in back ground:
#command &
what are the commands we have to use in HP-UX for corresponding above commands.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 04:50 AM
тАО03-19-2009 04:50 AM
Re: stopping / terminating the process and viewing stopped jobs
Is this a test? While LINUX evolved from UNIX and differs slightly, the core command set, particularly for shells that are similar (POSIX, ksh, bash) is the same!
Read the manpages or try things out!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 04:50 AM
тАО03-19-2009 04:50 AM
Re: stopping / terminating the process and viewing stopped jobs
1) to stop the process:
whatever "susp" is set to
2) to terminate immediately:
whatever "kill" is set to
3) to view stopped jobs:
jobs (may depend on your shell)
4) to run stopped job in FG:
fg jobno
5) to run stopped job in BG
bg jobno
6) to start job in BG
command &
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 05:11 AM
тАО03-19-2009 05:11 AM
Re: stopping / terminating the process and viewing stopped jobs
So these commands work similar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 06:42 AM
тАО03-19-2009 06:42 AM
Re: stopping / terminating the process and viewing stopped jobs
The commands are same,but you can see the special key combinations using stty -a command.
rgds
Bijeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 08:05 AM
тАО03-19-2009 08:05 AM
SolutionThese are the few tips about job control.
# ll /usr >mylist & -->Starts the job in the background and return to the shell prompt
[1] 11633 --> is job id and 11633 is process id
#jobs -->Will show the jobs running in the background and job id and status of the jobs
You can then use this job ID to bring a job into the foreground at any time.
# jobs
[1] + Stopped vi myfile
[2] - Running vi file2
#jobs -l ->Jobs with -l options shows the PID of all jobs
Suspending a Foreground Job
Press ^z(stty susp value) to suspend the current foreground job. Again use ├в fg├в command to bring the suspended and background jobs
Resuming Suspended Jobs and Bringing Background Jobs to the Foreground
#fg -->Will bring the current into foreground
#fg %
#fg %2 -->will bring the job id2 to foreground
#fg
#fg vi file2 -->Will bring the job ├в vi file2├в to foreground
Moving Jobs to the Background:
#jobs
[1] + Stopped vi myfile
[2] - Stopped vi file2
#bg %2 -->Start the job id 2 and keep running in background
#wait -->Will stop the command prompt until all background jobs get finished
#wait %2 --> Will stop the command prompt until background job id 2 get finished
Ganesh.