On Jul 29, [EMAIL PROTECTED] said:
>>You are opening a file for appending and reading. But you forgot (or
>>didn't know) that you start out at the *end* of the file.
I didn't thanks for the tip
>open (DONE,"+>>$done") or die "Cannot open file: $!";
>
>flock (DONE, 1);
>>You should real
I have a file I am trying to read and write to, it’s
obviously opening it ie.. No errors but not writing to it.
Since no errors are being produced I can’t figure out
why?
In short I am reading the file to see if I previously sent an
email concerning a “name” and if I have then don’t sen
Paul Johnson wrote:
> $line(){
chomp $line;
>if ($line =~/.*row.*/i){
> }else{
> $hash{$line}="new";
> }}
> close(BLK);
> our $a='3.3.3.3';
> delete ($hash{$a});
> print keys %hash;
also, s/our/my/ unless you have a good reason not to.
>--
>Paul Johnson - [EMAIL PROTECTED]
>http
Title: Message
I have been playing
with ipblocker from ipblocker.org and modified it to take a list of attackers
from an IDS. I wanted to do some error checking to pull out the "already blocked
ip's" before sending it to the original script. I can't figure out why the
delete $hash{'$x'} won'
Title: Message
I am having
difficulty discovering why a part of my script is doing what it is doing. I have
a script that polls switches every 5 minutes to discover new MAC's. Everything
works fine for discovering new MAC's but now I want to test for existing MAC's
that have moved.
The co
###
## I am simply sending output to a file to be reviewed
###
open (MASTER, ">>$mastermac");
foreach my $mactoport(@hostmacport){
print MASTER "$mactoport\n";
}
close(MASTER);
-Original Messa
Thanks I will do that and see what I get.
Rich Richmond
RS Information Systems
Systems/Network Analyst, DARPA
(W) 703-526-4012 (C) 703-946-3381
-Original Message-
From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 10:31 AM
To: arichmond(contr-ird
Title: Message
I believe I had the
same problem as you, based off two identical RedHat 9 boxes I have
except for mysql, the difference is in the /etc/ld.so.conf
mysql added:
/usr/kerberos/lib/usr/X11R6/lib/usr/lib/qt-3.0.5/lib/usr/lib/sane/usr/local/lib/usr/lib
non-mysql
box:
/usr/kerbero
Title: Message
I am using snmp to
walk a couple of tables on some switches to output a list of mac to port
numbers. It works fine when using only 1 switch, when I put multiple switches in
the list to walk, the output gets messed up showing multiple ports and or the
same port but with differe