login
Header Space

 
 

Re: Define hosts lookup for pf.conf

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: pichi <pboynton@...>
Cc: <misc@...>
Date: Tuesday, September 18, 2007 - 2:50 pm

It's telling you exactly what's wrong - you have not specified any  
code for the -e option.

man perl:

SYNOPSIS
        perl [ -sTuU ] [ -hv ] [ -V[:configvar] ]
            [ -cw ] [ -d[:debugger] ] [ -D[number/list] ]
            [ -pna ] [ -Fpattern ] [ -l[octal] ] [ -0[octal] ]
            [ -Idir ] [ -m[-]module ] [ -M[-]'module...' ]
            [ -P ] [ -S ] [ -x[dir] ]
            [ -i[extension] ] [ -e 'command' ] [ -- ] [ programfile ]  
[ argu-
        ment ]...

In the code snippet I sent I specified some code that tried to pull  
in the Socket module (I just copied the first two perl lines of  
David's script):

$ perl -e 'use strict; use Socket; print("hello\n");'

perl -e on its own will raise the error you have seen.

If a module is missing you will get something along the lines of:

perl -e 'use no-such-module;'
Can't locate no.pm in @INC (@INC contains: [cut blah-blah-blah]) at - 
e line 1.
BEGIN failed--compilation aborted at -e line 1.

But we are wandering well outside the realms of OpenBSD and into  
perl.  Try http://www.perlmonks.org/ or http://www.perl.com/ as  
starting points.

On 19/09/2007, at 3:21 AM, pichi wrote:

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Define hosts lookup for pf.conf, pichi, (Mon Sep 17, 4:42 pm)
Re: Define hosts lookup for pf.conf, Edwards, David (JTS), (Mon Sep 17, 10:03 pm)
Re: Define hosts lookup for pf.conf, pichi, (Tue Sep 18, 2:35 am)
Re: Define hosts lookup for pf.conf, Edwards, David (JTS), (Tue Sep 18, 5:03 pm)
Re: Define hosts lookup for pf.conf, Richard Toohey, (Tue Sep 18, 3:56 am)
Re: Define hosts lookup for pf.conf, pichi, (Tue Sep 18, 11:21 am)
Re: Define hosts lookup for pf.conf, Edwards, David (JTS), (Tue Sep 18, 6:38 pm)
Re: Define hosts lookup for pf.conf, pichi, (Wed Sep 19, 2:43 am)
Re: Define hosts lookup for pf.conf, Daniel Ouellet, (Wed Sep 19, 3:55 am)
Re: Define hosts lookup for pf.conf, Craig Skinner, (Wed Sep 19, 3:33 am)
Re: Define hosts lookup for pf.conf, Diana Eichert, (Wed Sep 19, 8:51 am)
Re: Define hosts lookup for pf.conf, Craig Skinner, (Wed Sep 19, 9:32 am)
Re: Define hosts lookup for pf.conf, Diana Eichert, (Wed Sep 19, 11:06 am)
Re: Define hosts lookup for pf.conf, Craig Skinner, (Wed Sep 19, 12:30 pm)
Re: Define hosts lookup for pf.conf, mickey, (Wed Sep 19, 9:31 am)
Re: Define hosts lookup for pf.conf, Miod Vallat, (Wed Sep 19, 9:53 am)
Re: Define hosts lookup for pf.conf, Diana Eichert, (Wed Sep 19, 11:15 am)
Re: Define hosts lookup for pf.conf, Bob Beck, (Wed Sep 19, 5:56 pm)
Re: Define hosts lookup for pf.conf, Richard Toohey, (Tue Sep 18, 2:50 pm)
speck-geostationary