Using this installed:
http://turkeyfiles.escapedturkey.net/misc/scripts/root/rcon-hl2-0.02.tar.gz
trying to make a script that reads parameters (hl2rcon.pl):
#!/usr/bin/perl
my $rcon = Rcon::HL2-new(
hostname = $ipaddress:$port,
password = $pass,
timeout = 3,
);
$rcon-run($command);
print
@list.valvesoftware.com
Sent: Saturday, September 22, 2007 9:39 AM
Subject: [hlds_linux] Anyone good with perl scripting?
Using this installed:
http://turkeyfiles.escapedturkey.net/misc/scripts/root/rcon-hl2-0.02.tar.gz
trying to make a script that reads parameters (hl2rcon.pl):
#!/usr/bin/perl
my $rcon
reads the $ipaddress and port and add your
to it...
With friendly reguards
Ratman2000
- Original Message -
From: [EMAIL PROTECTED]
To: hlds_linux@list.valvesoftware.com
Sent: Saturday, September 22, 2007 9:39 AM
Subject: [hlds_linux] Anyone good with perl scripting?
Using this installed
--
[ Picked text/plain from multipart/alternative ]
Not entirely sure what exactly you are wanting, but I'm guessing maybe
something like ...
my $params = join( ,@ARGV);
$params =~ m/\-ip +(\S+) +-port +(\S+) +-pass +(\S+) +-command +(.+)/;
my $ipaddress = $1;
my $port = $2;
my $pass = $3;
my
--
[ Picked text/plain from multipart/alternative ]
use Getopt::Long;
my $ipaddress;
my $port;
my $pass;
my $command;
$result = GetOptions (ipaddress|i=s = \$ipaddress,
port|p=s = \$port,
pass|x=s = \$pass,
Subject: Re: [hlds_linux] Anyone good with perl scripting?
--
[ Picked text/plain from multipart/alternative ]
Not entirely sure what exactly you are wanting, but I'm guessing maybe
something like ...
my $params = join( ,@ARGV);
$params =~ m/\-ip +(\S+) +-port +(\S+) +-pass +(\S+) +-command
Thank you to all that helped. I was just telling a friend that after
signing up to this hlds_linux list, I've never before seen such
friendly, knowledgeable, and professional people until now. You all rock! =)
Thank you again. =)
Nolan Hurlburt wrote:
--
[ Picked text/plain from
7 matches
Mail list logo