The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Government/corporate project declares plan to promote OSS within the EU iBot UNIX and Linux RSS News 0 02-14-2008 03:00 PM
Sun Microsystems launches new Enterprise Services Plan - Ovum iBot UNIX and Linux RSS News 0 06-25-2007 04:00 AM
Sun Solaris Disaster Recovery Plan ... sam212 SUN Solaris 4 07-05-2006 08:39 AM
What is plan that comes when you use finger "usename" on solaris ? ajphaj UNIX for Dummies Questions & Answers 1 02-03-2005 05:57 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-26-2001
Registered User
 

Join Date: Nov 2001
Posts: 3
Question plan

i want to make a program run when a person types 'finger USERNAME', username being my username. how can i do this?
Forum Sponsor
  #2  
Old 11-26-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Please don't try this. It can cause problems. The way it was done was to make .plan a named pipe and leave a program running that was writing to the pipe. The program would notice when a reader to the pipe existed and would start to run.

But if that program died, fingers would just block. If they were remote fingers resources would lock up until the system crashed. This was considered to be a denial of service attack. Most finger programs now will stat .plan and ignore it if it's not a plain file. So you probably can't do this anymore.

Here is a story that you probably won't believe...I know it's true and I can hardly believe it...

In my youth, I once decided to have a little fun with .plan. I set it to "Bus error(coredump)". I thought this was funny, but since I was the sysadm and people only fingered me to get my phone number, they just reported it to me as a bug. So I upped the ante to "Trolleycar error (core ejected) Deleting all files in current directory...exporting this behavior to all reachable networks!". I felt certain that folks could figure out that this message was bogus... Then I got a call from a guy who said his officemate had just got that message and was racing to the computer room to yank all of the cables out of the system. I stopped him before he did any damage. Then I deleted my .plan and haven't had one since.
  #3  
Old 11-29-2001
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
kill -l | grep TRLY

22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGTRLYCR


See??? They were right to be upset!!!

I have seen people rename core files to .plan though... horrible mess on some terminals. Can really snag up some low-bandwidth links too.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0