Re: Regex find and replace - delete line

2006-07-26 Thread James Turnbull
gt;> >> . . . shouldn't that be "ne" instead of "eq"? >> > > Yes, of course it should be "ne" . . . Thanks to all! The above solution worked perfectly. Regards James Turnbull - -- James Turnbull <[EMAIL PROTECTED]> - --- Author of

Regex find and replace - delete line

2006-07-23 Thread James Turnbull
y element and delete it rather than replace it with null (and then write it out to a file using Tie::File)? Thanks James Turnbull - -- James Turnbull <[EMAIL PROTECTED]> - --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/prod

Re: Exec a script on one server that will exec other scripts on a different serv

2006-06-17 Thread James Turnbull
> then disconnect the client, and what for another connection. > Of course rather than write a custom script for this there are a number of tools - for example cfengine (http://www.cfengine.org/) - that could achieve this. Regards James Turnbull - -- James Turnbull <[EMAIL PROTECTED]&g

Re: Getting ip address

2006-06-12 Thread James Turnbull
0.0.1" and push @a,$1 foreach `ifconfig -a`; print "@a"' Pipe the output to mail or the like. Regards James Turnbull - -- James Turnbull <[EMAIL PROTECTED]> - --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon

Re: filter email

2006-05-05 Thread James Turnbull
some library that would ease the development of this > program. Appreciate if anybody could point to me and hopefully give some > sample programs. Thanks in advance. Sorry for my english. > Have a look here: http://www.perl.com/lpt/a/2004/06/10/email.html Regards James Turnbull --

Re: Date difference.

2006-04-05 Thread James Turnbull
lent summary of most methods at http://perlmeme.org/faqs/datetime/comparing_dates.html. Regards James Turnbull -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Automatically scheduling the execution of a sub-routine

2006-04-04 Thread James Turnbull
if I seem a little slow on the uptake. :) Many Thanks James Turnbull -- James Turnbull <[EMAIL PROTECTED]> --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/159059/) --- PGP Key (http://pgp.mit.edu:11371/pk

Re: Automatically scheduling the execution of a sub-routine

2006-04-03 Thread James Turnbull
Mr. Shawn H. Corey wrote: First question: are you running under M$ Windows or UNIX? Unix - Linux or BSD generally Second question: does this periodic function relying on data of the main process? Yes - it uses a hash defined in the mainline. Regards James Turnbull -- To unsubscribe

Re: Automatically scheduling the execution of a sub-routine

2006-04-03 Thread James Turnbull
James Turnbull wrote: Hi Anyone know of a way to create a loop (or something similar) that automatically schedules the execution of a sub-routine periodically from within a program, for example execute check() every 600 seconds or the like? The program would be running as a daemon on the

Automatically scheduling the execution of a sub-routine

2006-04-03 Thread James Turnbull
Hi Anyone know of a way to create a loop (or something similar) that automatically schedules the execution of a sub-routine periodically from within a program, for example execute check() every 600 seconds or the like? The program would be running as a daemon on the host. Thanks James

Digest::MD5 issues

2005-12-27 Thread James Turnbull
subroutine &Digest::base::new called at (eval 59) line 4345. I've goggled this but I don't see any fixes for the problem. Thanks James Turnbull -- James Turnbull <[EMAIL PROTECTED]> --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/159059

Help with unpack function - C struct to Perl

2005-12-01 Thread James Turnbull
or now. Anyone know what data type to use? Can anyone provide any hints about how I should do this? Thanks in advance James Turnbull -- James Turnbull <[EMAIL PROTECTED]> --- Author of Hardening Linux from Apress (http://www.amazon.com/exec/obidos/tg/detail/-/159059/) --- PGP Key (http