mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-10 11:38:36 +02:00
* Header updates. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1732 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
15 lines
398 B
Perl
Executable File
15 lines
398 B
Perl
Executable File
#!/usr/bin/perl
|
|
# Copyright (c) 2007 Artica Soluciones Tecnologicas S.L.
|
|
use strict;
|
|
use IO::Socket;
|
|
|
|
if ($#ARGV != 2) {
|
|
die "Usage: $0 <address> <port> <command>";
|
|
}
|
|
|
|
my $socket = new IO::Socket::INET(Proto => "udp",
|
|
PeerAddr => $ARGV[0],
|
|
PeerPort => $ARGV[1]) || die "[error] Connect error: $@";
|
|
|
|
$socket->send ($ARGV[2]) || die "[error] Send error: $@";
|