- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Setting and getting the process name?
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
тАО03-03-2005 02:51 AM
тАО03-03-2005 02:51 AM
The C RTL gives me 'getpid()', but how can I get the process *name* instead? Furthermore, can I set my process name, and if so how?
All clues welcomed.
M.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 03:05 AM
тАО03-03-2005 03:05 AM
Re: Setting and getting the process name?
Don't have a C routine at hand, but you can always call upon a system service from within a C routine.
The system service SYS$GETJPI[W] can pretty much return any information about the process. For setting the process name you have the system service SYS$SETPRN.
See also:
http://h71000.www7.hp.com/doc/82FINAL/4527/4527PRO.HTML
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 03:15 AM
тАО03-03-2005 03:15 AM
Re: Setting and getting the process name?
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 03:16 AM
тАО03-03-2005 03:16 AM
Re: Setting and getting the process name?
Could anyone volunteer some example code, that I might how to call this and other system services in ANSI C?
Your clues still welcomed,
M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 03:30 AM
тАО03-03-2005 03:30 AM
Solution'Ask Compaq' is your friend ;-)
Example-C Using Lib$getjpi To Get Username Of Current Process
http://h18000.www1.hp.com/support/asktima/appl_tools/0095E0CC-F98FF880-1C02A1.html
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 05:53 AM
тАО03-03-2005 05:53 AM
Re: Setting and getting the process name?
Attached a "get my process name" sample.
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 05:54 AM
тАО03-03-2005 05:54 AM
Re: Setting and getting the process name?
Attached a "set my process name" sample.
Kris (aka Qkcl)