# faxupdte.sh -- Provides a uniform method to convey changes to the fax coordinator # # author: Marty Martindale # lineage: feedback.sh # updated: 06/09/93 # updated: 06/27/94 Changed info requested. Cynthia Roush # update: 07/28/94 Slightly modified instructions, mechanism. # Assign variables tmp=/tmp/._faxupdte$$ FAXADMAIX=eabell@austin.ibm.com subject="Request for fax create/update" # Create file to be edited echo " " > $tmp echo " Fax Update Request " >> $tmp echo " " >> $tmp echo " This program starts an edit session using the vi editor or the" >> $tmp echo " editor set in the EDITOR environment variable. Input your " >> $tmp echo " request for updating, adding, or deleting a fax, save the file," >> $tmp echo " and exit the editor. The file will automatically be sent to " >> $tmp echo " the fax administrator. If you experience any problems with " >> $tmp echo " this program, send mail to $FAXADMAIX. " >> $tmp echo " " >> $tmp echo " " >> $tmp echo " Fax Name? " >> $tmp echo " " >> $tmp echo " Who is the author of the change or of the new document? " >> $tmp echo " " >> $tmp echo " To what AIX versions/levels does this document apply? " >> $tmp echo " " >> $tmp echo " If fax is new:" >> $tmp echo " When would someone want to use this document? " >> $tmp echo " " >> $tmp echo " Briefly, what does the procedure in the document do? " >> $tmp echo " " >> $tmp echo " You can include the fax or fax changes here or send them " >> $tmp echo " separately. Communicate the changes in whatever way works " >> $tmp echo " best for the particular change. Email can be sent to " >> $tmp echo " $FAXADMAIX. Make sure it is clear where in the document" >> $tmp echo " the changes are. " >> $tmp echo " " >> $tmp echo " The fax administrator will take the changes through the " >> $tmp echo " appropriate approval process. " >> $tmp # Let user edit file ${EDITOR:=/usr/bin/vi} $tmp # Give user chance to cancel echo " " echo " To send the request, press Enter. To cancel the request," echo " press Ctrl-C." \\c read VAR # Mail request # (removed tail command because user could put something else on first # 11 lines -- admin would rather see extra lines that chance missing # something.) #tail +11 $tmp | mail -s "${subject}" ${FAXADMAIX} echo " " echo "Sending request" mail -s "${subject}" ${FAXADMAIX} <$tmp rm $tmp