Re: Dynamically loading perl code

2007-07-13 Thread Andrew Greenwood
Jenda Krynicky wrote: Date sent: Fri, 13 Jul 2007 08:53:56 +0200 From: "Gregory Machin" <[EMAIL PROTECTED]> What I want to do is to write a service monitoring daemon, where the core or body of the script parses a directory, that contains the config / perl scripts, and is loaded i

Re: Dynamically loading perl code

2007-07-13 Thread Jenda Krynicky
Date sent: Fri, 13 Jul 2007 08:53:56 +0200 From: "Gregory Machin" <[EMAIL PROTECTED]> > What I want to do is to write a service monitoring daemon, where the > core or body of the script parses a directory, that contains the > config / perl scripts, and is loaded into the core script, i

Re: Dynamically loading perl code

2007-07-13 Thread Ken Foskey
On Fri, 2007-07-13 at 08:37 -0400, Mr. Shawn H. Corey wrote: > If you want to run scripts, you should use system(). See `perldoc -f > system` or: open( PROG, '|-', 'myscript.sh options' ) or die ... while( ) { } close PROG if( $? ) { die "I have failed"; } -- Ken Foskey FOSS developer

Re: Dynamically loading perl code

2007-07-13 Thread Mr. Shawn H. Corey
Gregory Machin wrote: What I want to do is to write a service monitoring daemon, where the core or body of the script parses a directory, that contains the config / perl scripts, and is loaded into the core script, if one of the scripts has an unrecoverable error, it's dumped, thus preserving the

Re: Dynamically loading perl code

2007-07-12 Thread Gregory Machin
On 7/12/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 7/12/07, Gregory Machin <[EMAIL PROTECTED]> wrote: > Hi > I have a rusty memory of perl have the ability, where by you can load > perl code into an variable / array then execute it on demand, anyone > got an example of how to do this .. > > Man

Re: Dynamically loading perl code

2007-07-12 Thread Chas Owens
On 7/12/07, Gregory Machin <[EMAIL PROTECTED]> wrote: Hi I have a rusty memory of perl have the ability, where by you can load perl code into an variable / array then execute it on demand, anyone got an example of how to do this .. Many Thanks The string based version eval function can do this

Re: Dynamically loading perl code

2007-07-12 Thread Gary Stainburn
On Thursday 12 July 2007 11:05, Gregory Machin wrote: > Hi > I have a rusty memory of perl have the ability, where by you can load > perl code into an variable / array then execute it on demand, anyone > got an example of how to do this .. > > Many Thanks > Hi Gregory Are you thinking about the e

Dynamically loading perl code

2007-07-12 Thread Gregory Machin
Hi I have a rusty memory of perl have the ability, where by you can load perl code into an variable / array then execute it on demand, anyone got an example of how to do this .. Many Thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za -- To unsubscribe, e-mail: [EMAIL PROTECTED] For