- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Giving a tag to a 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
тАО11-18-2000 07:44 AM
тАО11-18-2000 07:44 AM
Giving a tag to a process !
Can anyone tell me how to tag a process and start it. Because, I am running several Java processes which I am not able to distinguish with ps command. So, I want some kind of identification to catch the process. Any inputs?
Thanks and Regards,
Karunanidhi.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2000 07:48 AM
тАО11-18-2000 07:48 AM
Re: Giving a tag to a process !
How about a different login for each?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2000 03:21 AM
тАО11-19-2000 03:21 AM
Re: Giving a tag to a process !
You could write a wrapper start-up script that writes the pid and other pertinent info. to a disk-file for each invocation; an alias for the ps command could process that file further...
Alternatively, the -H option of ps (with UNIX95 set in its environment) could be of some help....
Cheers,
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2000 07:39 AM
тАО11-19-2000 07:39 AM
Re: Giving a tag to a process !
You could make each process appear with a different string in the process table by using a wrapper that uses the execvp(3).
I have included such a wrapper in attachment: it is called execalias and offers the possibility to execute a proces and make it appear w/ a different name in the process table:
execalias -a "instance_1" -c "the_command"
execalias -a "instance_2" -c "the_command"
A ps -ef would show "instance_1" and "instance_2".
Hope this helps,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2000 08:36 AM
тАО11-19-2000 08:36 AM
Re: Giving a tag to a process !
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd3fb5f260cafd4118fef0090279cd0f9!1,00.html
it describes how you could start the processes in the background and the and get/store the PIDs...