File: log

package info (click to toggle)
ircii 20051015-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,996 kB
  • ctags: 3,193
  • sloc: ansic: 44,257; makefile: 1,144; sh: 522; perl: 127; lex: 26
file content (16 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#	$eterna: log,v 1.2 2001/08/12 15:57:11 mrg Exp $
#
# This is an example showing the use of /wait to get the output from a process and use it.
on ^exec thing assign thing $1
on ^exec_exit thing 
alias _log ^set logfile IrcLog.$thing
alias log.process {
	exec -name thing uptime
	wait %thing
	_log
}
alias log {
	if ( [$0] == [on] )
		{ ^log.process }
	set log $0
}