| ailton | just wanna check once again, the default code was likt this |
| action | Zaphod_Biblbroks is now away: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: :.: PAnDEMOnium script :. |
| Zaphod_Biblbroks | is now away: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: .: :.: PAnDEMOnium script :. |
| ailton | return 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.. |
| nocturnal | f00li5h: 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? |
| simcop2387 | eval: $self=255.255.255.255; $_=$self; $self; probably same result |
| buubot | Killing 366 due to run time |
| f00li5h | nocturnal: does it change cdw or something? |
| simcop2387 | stupid forking |
| ailton | f00li5h :) ^^ |
| peterS | <buubot> simcop ate my CPU |
| f00li5h | ailton: hrm? |
| peterS | eval: $_=256.256.256.256;$_ |
| simcop2387 | qwer |
| buubot | peterS: ->: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. |
| nocturnal | f00li5h: 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 |
| ailton | eval: $_=256.256.256.256;$_ $;afro1 |
| buubot | ailton: 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 |
| nocturnal | f00li5h: so basically it doesn't matter where your cwd is, if that is what you meant |
| f00li5h | nocturnal: do you test for permissions/failures in your execcmd? |
| nocturnal | f00li5h: no i'm afraid i don't but the script runs as root |
| f00li5h | nocturnal: then how can you know why the thing is failing? |
| nocturnal | f00li5h: which permissions would you have me check? that the binary is executable? |
| f00li5h | i'm asking if you're catching any errors |
| nocturnal | i catch stdout but not stderr rndc prints to stderr on error |
| f00li5h | and what of the return code? |
| peterS | his point is that you should verify that the exec function succeeded |
| nocturnal | no, 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 |
| f00li5h | peterS: why didn't i just say that? nocturnal: find out the exit code too |
| threat2 | G'Day |
| f00li5h | threat2: hi |
| threat2 | sup? |
| f00li5h | meat. you? |
| threat2 | noodles |
| xand | your meat is up? :S |