File: log

package info (click to toggle)
ircii 20190117-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,788 kB
  • sloc: ansic: 44,172; makefile: 863; sh: 524; perl: 291
file content (15 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#	$eterna: log,v 1.3 2014/03/14 20:59:19 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 -cmd %thing _log
}
alias log {
	if ( [$0] == [on] )
		{ ^log.process }
	set log $0
}