Re: [Boston.pm] daemonizing a perl script

2006-02-21 Thread Tim Wilde
On Tue, 21 Feb 2006, Ranga Nathan wrote:

 Thanks all for the responses

 While talking to my son he pointed out that tailing xferlog would be  a
 problem when the log is being rotated. I would be looking at an old inode
 that has no activity. I looked at the system and found that the logs are
 rotated at 4AM every sunday. So, I need to change my approach.

 I found a number of modules like File::Tail and File::Tail::App. Looks
 like these modules will have the same issue.

Actually, File::Tail is smart, it does all kinds of complicated 
determination of the normal average time between entries, and if it hasn't 
seen an entry in more than that amount of time, it'll assume the log got 
rotated away and close/re-open.

Check out the Description section of the POD for more details:

http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm

Tim Wilde

-- 
Tim Wilde
[EMAIL PROTECTED]
Systems Administrator
Dynamic Network Services, Inc.
http://www.dyndns.com/
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] taking in info from command-line command

2005-07-05 Thread Tim Wilde
On Tue, 5 Jul 2005, Alex Brelsfoard wrote:

 OK, so I know there's an easy-ish way to handle this situation.  But I'm
 currently running in circles, not finding the solution.  Basically what I'm
 trying to do is run a system command (with either `command` or
 system(commnad) ) and retrieve the printed result form the command into a
 variable of some sort.
 So think of it this way:
 my $info = `ls`;

And this doesn't work?  Is your command outputting on STDOUT or STDERR? If it's 
dumping its output on STDERR, try adding 21 to the end of your command in 
back-ticks, that will redirect STDERR to STDOUT, and might get the output 
captured properly (though I haven't tried it).

Tim Wilde

-- 
Tim Wilde
[EMAIL PROTECTED]
Systems Administrator
Dynamic Network Services, Inc.
http://www.dyndns.com/
 
___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


RE: [Boston.pm] My IP

2004-01-07 Thread Tim Wilde
On Tue, 30 Dec 2003, Mark Aisenberg wrote:

[ cc list trimmed ]

 2) dyndns is constantly (monthly or so) emailing me telling me they are
 under a DoS attack and will be unavailable for a day or so.

 You've got to decide if you can deal with these hassles.

 I've also used tzo.com for dynamic DNS.  They cost $25/year if I remember
 correctly, but they seem to be more reliable.

Only because they don't inform you when they encounter such issues.  I may
be biased (well, of course I am, I run DynDNS.org), but I guarantee you
TZO and everyone else in this industry have as many or more problems with
Denial of Service attacks and the like as we do - they just aren't as
up-front and honest about them as we are.  It's the two sides of the
full-disclosure coin; in a world where not everyone is doing it, those of
us who do may not look as good, but at least you know exactly what you're
getting, because you can read two years of our system status archives
right there on our website, plain and clear in black and white.

Tim Wilde

-- 
Tim Wilde
[EMAIL PROTECTED]
Systems Administrator
Dynamic Network Services, Inc.
http://www.dyndns.org/
___
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm