savelogs and hooks

2005-06-10 Thread Philippe de Rochambeau

Hello,

I am planning to use savelogs to save my logs. savelogs has two 
hooks, a premovehook and a postmovehook, where moving means 
renaming the log file to today's date.


The savelogs author told me the following:

your Perl script should have a signal handler or some
other mechanism to close and reopen its log file which can be invoked
from savelogs. Otherwise, any data written by the Perl script (or any
program for that matter) after the compression phase occurs will be
lost.

Let us say that one of my logging scripts does the following

open FH,  raw feed or die...
open LOG, logfile.log or die...

while (FH) {
# process feed
print LOG processed data
}

close FH;
close LOG;

Which signal handler(s) should I write to make this logging script 
compatible with savelogs?


Should I have a handler that flushes the log and closes it 
(premovehook)? Should I have another handler that opens it again and 
continues to write to it (postmovehook)? How can I integrate those 
handlers in the code above?


Many thanks.

Philippe 



Class documentation...

2005-06-10 Thread Leo Lapworth

Hi,

Sherm - Thanks for the info about the docs...

I still find it hard to read... so my first project is going to be a  
combination
of WWW::Mechanize and HTML::Parser to generate a nicer list of  
documentation,
initially as HTML, but eventually as a CB App (once I have the  
documentation!)


I want to end up with a tree structure something like

Class Name
   method
   method
inherited classes
Class name
method
method

So from any class you can see all methods - even if they are  
inherited, I will still
maintain links to the description of methods etc. I'm not sure about  
the Conforms to yet, but that

can be phase 2.

I will parse:
file:///Developer/ADC%20Reference%20Library/documentation/Cocoa/ 
Reference/ApplicationKit/ObjC_classic/index.html


Go into each Class , find all inherited classes and process the HTML  
from there.


Does anyone see any problems with this? - is there a better source to  
parse?


Cheers

Leo


Re: Class documentation...

2005-06-10 Thread Leo Lapworth


On 10 Jun 2005, at 11:41, Leo Lapworth wrote:
I still find it hard to read... so my first project is going to be  
to generate a nicer list of documentation,


Just for the archives - I've been pointed to:

http://homepage.mac.com/aglee/downloads/appkido.html

Which already seems to do exactly what I wanted... guess I'll have to  
think

of something else for my first CB App!

Cheers

Leo


Re: question on Net::SSH::Perl

2005-06-10 Thread Ted Zeng

Thanks.

I found out the machines I have the problem with have OS X 10.4.1 
installed.

10.3.8 doesn't have the problem.

I generated a public key and copied it to a target machine. Then it is 
ok.

Not a good solution to me. But I can deal with it.

I have looked at ssh_config and sshd_config and still could not figure 
out why these two

OS behave differently.

SSH has been a big pain. I wish it has a switch that would turn it into 
telnet.

I don't care about security in our situation.


ted

On Jun 2, 2005, at 4:42 PM, Sherm Pendley wrote:


On Jun 2, 2005, at 2:20 PM, Ted Zeng wrote:

Anyone has seen this problem before? I searched the net and found a 
couple of people

had this problem. But there were no answers to their questions.

Here is the script that I used:

$user='name';
$pass = 'password';
$host = '111.22.33.444';
$params{debug} = 1;
$params{interactive} = 0;
my $ssh = Net::SSH::Perl-new($host,%params,options =[BatchMode 
yes]);


Googling for 'No compat match:' turned up some likely-looking 
candidates, including this one:


http://forums.devshed.com/t191670/s.html

Based on that page, you might try using the 'protocol' option for 
force Net::SSH::Perl to try an SSH2 connection first:


$params{protocol} = '2,1';

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org





OT-good DEDICATED hosting service

2005-06-10 Thread Mark Wheeler

Hi,

Sorry if this is off topic, but I need to move a shared account to a 
dedicated account, but picking a new host provider is a need in a 
haystack. So I ask, where is a good place to go for a DEDICATED server 
hosting package? What are your good experiences?


Thanks,

Mark



Re: OT-good DEDICATED hosting service

2005-06-10 Thread Mark Wheeler
Thank you all very much. I'll check into all of them. I'm sure I'll 
find one that is exactly what I am looking for.


Mark

On Jun 10, 2005, at 4:08 PM, Ian Ragsdale wrote:

I've had very good experience with Rackspace.  They have incredible 
customer service, but they have a pretty high price to match.  I've 
also had good luck with Pair.com.


Ian

On Jun 10, 2005, at 5:58 PM, Mark Wheeler wrote:


Hi,

Sorry if this is off topic, but I need to move a shared account to a 
dedicated account, but picking a new host provider is a need in a 
haystack. So I ask, where is a good place to go for a DEDICATED server 
hosting package? What are your good experiences?


Thanks,

Mark





Re: OT-good DEDICATED hosting service

2005-06-10 Thread Joel Rees

On 2005.6.11, at 07:58 AM, Mark Wheeler wrote:

Sorry if this is off topic, but I need to move a shared account to a 
dedicated account, but picking a new host provider is a need in a 
haystack. So I ask, where is a good place to go for a DEDICATED server 
hosting package? What are your good experiences?


Have you considered colocation, or even running the servers yourself?

The mac mini alters the economics of both doing it yourself and 
colocation significantly, for an awfully large number of applications.


--
Joel Rees
even though much of what I do is not sensible
it does make sense if you know why ...