home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ircii30.zip / script / log < prev    next >
Text File  |  1994-07-30  |  313b  |  15 lines

  1. # This is an example showing the use of /wait to get the output from a process and use it.
  2. on ^exec thing assign thing $1
  3. on ^exec_exit thing 
  4. alias _log ^set logfile IrcLog.$thing
  5. alias log.process {
  6.     exec -name thing uptime
  7.     wait %thing
  8.     _log
  9. }
  10. alias log {
  11.     if ( [$0] == [on] )
  12.         { ^log.process }
  13.     set log $0
  14. }
  15.