Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/bin/x10client
#!/usr/bin/perl

# Copyright (c) 1999-2017 Rob Fugina <robf@fugina.com>
# Distributed under the terms of the GNU Public License, Version 3.0

=head1 NAME

x10client - use to send a list of x10 events to an x10 server 

=head1 USAGE

Usage:

    x10client event1 event2 event3 ...
     
Where event1, event2, event3, etc. each represent an x10 event

=head1 DESCRIPTION

Sends x10 events to an x10 server

=head1 AUTHOR

Rob Fugina <robf@fugina.com>

=cut

use File::Basename;

# this works as long as it's not called through a symlink...
use lib (dirname $0);

use X10::EventList;
use X10::Network;

die "No events given\n" unless @ARGV;

my $eventlist = new X10::EventList(@ARGV);

my $x10 = new X10::Network( server => 'x10' );

unless ($x10)
{
   warn "Couldn't connect to X10 controller";
   exit;
}

$x10->send( $eventlist );



Hry