Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: Perl  |  size: 0.73 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/local/bin/perl
  2.  
  3. use Growl::GNTP;
  4.  
  5.  
  6. $growl = Growl::GNTP->new(
  7.                                                         PeerHost        => "10.8.0.6",
  8.                                                         PeerPort        => 23053,
  9.                                                         AppName         => "GrowlTest",
  10.                                                         Password        => "boe");
  11.  
  12. $growl->register( [
  13.                                         {Name                   => "$AppName",},
  14.                                         {DisplayName    => "Viking Irssi Notifier",},
  15.                                         {Enabled                => "True",},
  16.                                         {Sticky                 => "$Sticky",},
  17.                                         {Priority               => 0,},
  18.                                         {Icon                   => "http://rootcu.be/images/viking.png"},]
  19. );
  20.  
  21. $growl->notify(
  22.         Event           => 'Notification',
  23.         Title           => "Test:",
  24.         Message         => "This is a test.\n AppName = $AppName \n GrowlHost = $GrowlHost \n GrowlServ = $GrowlServ \n Sticky = $Sticky\n Away = $testing",
  25.         Priority        => 0,
  26.         Sticky          => "$Sticky",
  27.         Icon            => "http://rootcu.be/images/viking.png"
  28.  );