- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Obtaining PID from wtmp
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
Forums
Discussions
Discussions
Forums
Discussions
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
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-19-2002 07:02 AM
02-19-2002 07:02 AM
i.e.
Using the 'last' command with '-R' gives:
'user' 'type of entry' 'originating address' 'time' etc.
However, the 'wtmp' manpage reports the structure of the file to include PIDs.
Can anyone advise how I can extract this PID information
thanks
Steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:13 AM
02-19-2002 07:13 AM
Re: Obtaining PID from wtmp
You can use the fwtmp to convert the binary wtmp data to text. e.g. /usr/sbin/acct/fwtmp < /etc/wtmp will list the data to stdout.
Man fwtmp for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:13 AM
02-19-2002 07:13 AM
Re: Obtaining PID from wtmp
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:19 AM
02-19-2002 07:19 AM
Re: Obtaining PID from wtmp
Try this:
# /usr/sbin/acct/fwtmp < /etc/wtmp > /tmp/wtmp
This will convert the wtmp file to text and you can read the PID from this file. See this link for more information:
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90681/B2355-90681_top.html&con=/hpux/onlinedocs/B2355-90681/00/01/113-con.html&toc=/hpux/onlinedocs/B2355-90681/00/01/113-toc.html&searchterms=fwtmp&queryid=20020219-072530
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2002 07:27 AM
02-19-2002 07:27 AM
Re: Obtaining PID from wtmp
Cheers
Steve