- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: stopping / terminating the process and viewing...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP