I used to run this script just fine on my old server (Debian 5 Lenny x32)…. but doesn’t seem to work with this new one… though both will have different software installed..
I tell the script to load and I get:
04:55 -!- Irssi: Error loading module testScript/testScript: /user/.irssi/scripts/autorun/testScript.pl: invalid ELF header
The script code:
Code:
#/script load autorun/testScript.pl
use Irssi;
use Irssi::Irc;
#use strict;
use vars qw($VERSION %IRSSI);
$VERSION="0.1";
%IRSSI = (
authors=> 'anonymous',
name=> 'testScript',
description=> 'testScriptt',
license=> 'GPL',
);
system qq{curl -s -k -b “uid=12345” "http://somesite.com/file.php" > /dev/null 2>&1};
Irssi::print("testScript Loaded");
Running:
Debian 5 (Lenny) amd x64
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
irssi 0.8.14 (20090728 1938)
Perl it’s self seems to work, because i’v run some other Perl scripts directly (perl ./script.pl) and they work fine)
Any ideas as to what is going on here and how I might be able to fix it?
Cheers, Techono