PLAN

Section: Local Commands (L)
Updated:
Index Return to Main Contents
 

NAME

plan - run an executable when a specified FIFO is opened  

SYNOPSIS

plan [ -ffile ] executable  

DESCRIPTION

plan takes the name of an executable program and runs it on a FIFO that is specified on the command line or on a FIFO in the user's home directory named .plan. Whenever the FIFO is accessed, the output of the executable program goes to the FIFO. It also writes the PID of plan to a file, so the process can be killed during logout, and it checks for the existence of this file to make sure plan isn't already running.  

OPTIONS

-f file_name
The -f flag causes plan to set up the specified file_name as a FIFO rather than the default $HOME/.plan.

Some sample uses of plan would be:

plan /usr/games/fortune &
This will display a randomly selected fortune as the contents of your .plan file whenever you are fingered.
plan -f ~/.signature ~/bin/gensig &
This will run the program gensig whenever your .signature file is accessed, allowing you to change your .signature whenever you post.
plan ~/bin/logfinger &
This will run the program logfinger whenever your .plan file is accessed, and you can log all instances of people fingering you.
 

AUTHOR

Tony Rems (rembo@unisoft.com)

Modifications by Geoff Loker (geoff@mdms.moore.com) More modifications by Karen Bruner (napalm@ugcs.caltech.edu)  

BUGS

Your system must support named pipes in order for this to work.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
AUTHOR
BUGS

This document was created by man2html, using the manual pages.
Time: 06:50:05 GMT, December 12, 2024