#perl - Thu 29 Mar 2007 between 06:13 and 06:22



ailtonjust wanna check once again, the default code was likt this
actionZaphod_Biblbroks is now away: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: :.: PAnDEMOnium script :.
Zaphod_Biblbroksis now away: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: :.: PAnDEMOnium script :.
ailtonreturn if $ip eq '255.255.255.255' && Irssi::settings_get_bool('ho_hammer_ignore_spoofs');
I only need the first part, if $ip eq '255.255.255.255'; <--- that's the correct way to state it?
even if I picked out a part from the whole line..
nocturnalf00li5h: so with the facts in hand, i'm turning off buffering on the filehandle, i'm closing the filehandle, can you now perhaps tell me why you think the command that relies on the file existing fails when executed after the files filehandle has closed?
simcop2387eval: $self=255.255.255.255; $_=$self; $self;
probably same result
buubotKilling 366 due to run time
f00li5hnocturnal: does it change cdw or something?
simcop2387stupid forking
ailtonf00li5h :)
^^
peterS<buubot> simcop ate my CPU
f00li5hailton: hrm?
peterSeval: $_=256.256.256.256;$_
simcop2387qwer
buubotpeterS: ->:simcop2387!n=simcop23@p3m/member/simcop2387 PRIVMSG #Perl :qwer Can't use string (" ") as a HASH ref while "strict refs" in use at ./buubot.pl line 336.
nocturnalf00li5h: the command executes properly if i execute it on the command line with the exact path and arguments i pass to open in the perl script, but this only works after the perl script has finished execution, so it does work, it's an rndc command that relies on where bind is chrooted so it's reading the path to the file from the named.conf
ailtoneval: $_=256.256.256.256;$_ $;afro1
buubotailton: Scalar found where operator expected at eval line 1, near "$_ $;" (Missing operator before $;?) Bareword found where operator expected at eval line 1, near "$;afro1" (Missing operator before
nocturnalf00li5h: so basically it doesn't matter where your cwd is, if that is what you meant
f00li5hnocturnal: do you test for permissions/failures in your execcmd?
nocturnalf00li5h: no i'm afraid i don't but the script runs as root
f00li5hnocturnal: then how can you know why the thing is failing?
nocturnalf00li5h: which permissions would you have me check? that the binary is executable?
f00li5hi'm asking if you're catching any errors
nocturnali catch stdout but not stderr
rndc prints to stderr on error
f00li5hand what of the return code?
peterShis point is that you should verify that the exec function succeeded
nocturnalno, i will get to work on that f00li5h, i'll try and see what it returns to stderr and figure out what exactly rndc is saying when executed, thank you
f00li5hpeterS: why didn't i just say that?
nocturnal: find out the exit code too
threat2G'Day
f00li5hthreat2: hi
threat2sup?
f00li5hmeat. you?
threat2noodles
xandyour meat is up? :S

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 

IrcArchive