Re: Invoking Perl script from 'C' with i/o redirection and invocation options

2003-10-21 Thread Jeremy Begg
Hello, >I need to invoke a perl script (SPAMASSASSIN FWIW) from a C program with command >line parameters and input and output re-direction. Currently from my 'C' program >I call LIB$SPAWN with a PERL command such as: > > perl spamassassin. -e2160 < SAMPLE-SPAM.TXT > KZSAMPLE-SPAM-OUT.TXT > >This

Re: Invoking Perl script from 'C' with i/o redirection and invocation options

2003-10-21 Thread Michael Downey
"Karol Zielonko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -- - > > I need to invoke a perl script (SPAMASSASSIN FWIW) from a C program with command > line parameters and input and output re-direction. Curre

RE: Some DBD-RDB matters (OpenVMS only)

2003-10-21 Thread Henderson, Jordan (Contractor) (DAASC)
If the Rdb environment has been set correctly with @sys$share:rdb$setver.com, then the current .OLB for the API is pointed to by the logical name SQL$USER. It might be a good idea to use this logical, or at least test for it and fall back to SQL$USER.OLB if the logical is not set. There's a comple

Re: Invoking Perl script from 'C' with i/o redirection and invocation options

2003-10-21 Thread Karol . Zielonko
Hi, Hey it sounds like others are familiar with SPAMassassin. That's good news. Thanks for the suggestion but I am aware of SPAMD and have given up on it as it uses fork(). If I understand what it's doing parent process has loaded in the SPAMassassin "object" and hence invoked the Perl parse to p

Re: Invoking Perl script from 'C' with i/o redirection and invocation options

2003-10-21 Thread Craig Berry
On Tuesday, October 21, 2003, at 05:52AM, <[EMAIL PROTECTED]> wrote: >First off version info. I am running perl 5.6.1 which I got pre-built from: > > ftp://ftp.sidhe.org/perl-5_6_1-vmsaxp-7_2-1.zip The HP PCSI kit of 5.6.1 has a couple of tweaks and bug fixes not in this version, including on

Re: Some DBD-RDB matters (OpenVMS only)

2003-10-21 Thread Craig Berry
On Monday, October 20, 2003, at 03:54PM, Craig Berry <[EMAIL PROTECTED]> wrote: > >On Monday, October 20, 2003, at 03:22PM, Willem Grooters <[EMAIL PROTECTED]> wrote: > >>Hello, >> >>Tried to build BDB-RDB-1_16, when linking, a lot of undefined references >>due to the fact that SYS$IBRARY:SQ$US

Re: Invoking Perl script from 'C' with i/o redirection and invocation options

2003-10-21 Thread John Peacock
[EMAIL PROTECTED] wrote: perl spamassassin. -e2160 < SAMPLE-SPAM.TXT > KZSAMPLE-SPAM-OUT.TXT This works but incurs LIB$SPAWN's process creation overhead in addition to re-compilation of the perl scripts each time around (and this set of scripts takes five to ten seconds to compile). This is more

Invoking Perl script from 'C' with i/o redirection and invocation options

2003-10-21 Thread Karol . Zielonko
Hi, First off version info. I am running perl 5.6.1 which I got pre-built from: ftp://ftp.sidhe.org/perl-5_6_1-vmsaxp-7_2-1.zip To install it I followed installation instructions as much as possible in http://www.sidhe.org/vmsperl/prebuilt_perl_5_005_readme.txt (Some of the instructions