home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rutgers!homecare!adsi!markp
- From: markp@adsi.homecare.com (Mark Parr)
- Newsgroups: comp.unix.programmer
- Subject: Getting the IP address of a 'rlogin'ed user
- Message-ID: <1992Aug28.150507.4219@adsi.homecare.com>
- Date: 28 Aug 92 15:05:07 GMT
- Sender: markp@adsi.homecare.com (Mark Parr)
- Organization: Application Data Systems, Inc.
- Lines: 36
-
-
- I'm looking for a function that when called will return the IP address the
- machine from which a user is 'rlogin'ed.
-
- For example, if a 'who' shows the following:
-
- billp tty5 Aug 28 07:55
- brucec tty6 Aug 28 08:44
- jdoe pts/0 Aug 28 09:53 (adsi)
- bob pts/1 Aug 28 09:53 (ibm)
- smith pts/2 Aug 28 09:53 (ibm)
-
- I would assume the function would work along the lines of
-
- function(user, tty)
-
- Example:
-
- getip("smith", "pts/2") -> returns 89.0.0.1
-
- where 89.0.0.1 is the IP address of ibm.
-
- Does this function (or something similar) exists?
-
- Please respond directly to me as I'll be out of town for a week and I
- do not want to miss a response.
-
- Thanks,
- Mark
-
-
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- | |-------------| Application Data Systems | Phone: (601) 393-2046 | |
- | | Mark Parr | 1930-B 1st Commercial Dr. N | Fax: (601) 393-6605 | |
- | |-------------| Southaven, MS 38671 | markp@adsi.homecare.com | |
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-