home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1935 / lchat < prev   
Text File  |  1990-12-28  |  537b  |  22 lines

  1. :
  2. # $Id: lchat,v 1.1 90/08/19 19:06:00 darcy Exp $
  3. # This script calls chat with some arguments.  Set LOGFILE equal to 
  4. # a log file to capture your session to.  Set REALNAME to the name
  5. # to display on the output.
  6.  
  7. # If a user's name is entered, chat is called via chatyell which 
  8. # sends a message to the named user to run chat before running chat.
  9.  
  10. LOGFILE=/usr/darcy/chat.log
  11. REALNAME="D'Arcy"
  12.  
  13. echo "\n`date`" >> $LOGFILE
  14.  
  15. if [ $# = 0 ]
  16. then
  17.     chat -n $REALNAME -f $LOGFILE
  18. else
  19.     chatyell $1 -n $REALNAME -f $LOGFILE $2 $3 $4 $5
  20. fi
  21.  
  22.