Hi everyone,
I know it possible to send a page messge from perl using Net::SNPP;
But I my script simply does not work.
#!/usr/local/bin/perl -w
use Net::SNPP;
$snpp = Net::SNPP->new('snpphost');
$pgr = '4181234567';
$snpp->send( Pager => $pgr,
Message => "Your lunch is ready",
Alert => 1,
Hold => time + 3600, # lunch ready in 1 hour
) || die $snpp->message;
$snpp->quit;
I get an error message
Can't call method "send" on an undefined value at page.pl line 13.
Any ideas?
Am I missing something.
OS = Window 2k.
ps. How is this module sending the message if it is not dailing any phone number
Thanks in advance
I know it possible to send a page messge from perl using Net::SNPP;
But I my script simply does not work.
#!/usr/local/bin/perl -w
use Net::SNPP;
$snpp = Net::SNPP->new('snpphost');
$pgr = '4181234567';
$snpp->send( Pager => $pgr,
Message => "Your lunch is ready",
Alert => 1,
Hold => time + 3600, # lunch ready in 1 hour
) || die $snpp->message;
$snpp->quit;
I get an error message
Can't call method "send" on an undefined value at page.pl line 13.
Any ideas?
Am I missing something.
OS = Window 2k.
ps. How is this module sending the message if it is not dailing any phone number
Thanks in advance