how to put a program into a .plan file

Matthew Farwell dylan at ibmpcug.co.uk
Sun Sep 30 00:11:54 AEST 1990


In article <38200 at eerie.acsu.Buffalo.EDU> haozhou at acsu.buffalo.edu (hao zhou) writes:
>A further question:
>       Is it possible to figure out who have fingered you?

You could:- 

1) Search the process table looking for the keyword 'finger'. All this would
   alt this would require would just starting ps. However this method
   isn't very reliable in that it would catch other people who were
   fingering at that time + the process might not have an argv[0] of
   finger anyway.

2) Perhaps a more reliable method would be to go and get the active
   inode information from a program like pstat. (On Xenix, the option would
   be pstat -i). This gives you the device, the inode number and the uid
   of all currently active inodes. Therefore you can work out who is
   fingering you.

Dylan.
-- 
Matthew J Farwell                 | Email: dylan at ibmpcug.co.uk
The IBM PC User Group, PO Box 360,|        ...!uunet!ukc!ibmpcug!dylan
Harrow HA1 4LQ England            | CONNECT - Usenet Access in the UK!!
Phone: +44 81-863-1191            | Sun? Don't they make coffee machines?



More information about the Comp.unix.programmer mailing list