| View previous topic :: View next topic |
| Author |
Message |
romprod Halfop
Joined: 19 Oct 2001 Posts: 49
|
Posted: Sat Jan 12, 2013 1:08 pm Post subject: Simple text event trigger |
|
|
Hi Guys,
I'm looking at expanding a basic script that I've written. Can someone give me pointers on how I add multiple procedures for the same trigger and adding multiple triggers for these procedures?
How would it be possible to capture what is returned by the OS from the command and say it to the channel?
| Code: | bind pubm - test test
proc test { nick host hand chan text } { exec wakeonlan -p 7 A0:A0:A0:A0:A0:A0 } |
|
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Fri Jan 18, 2013 10:00 pm Post subject: |
|
|
Try
| Code: |
bind pubm - test test
proc test { nick host hand chan text } {
set s [exec wakeonlan -p 7 A0:A0:A0:A0:A0:A0]
}
putserv "PRIVMSG $chan :$s"
|
|
|
| Back to top |
|
 |
|