Jeff and all who responded to my problem:
I finally got it to work but I couldn't tell you what
did it. Like Jeff says, it is some sort of formatting
issue. I deleted part of the file (some comments) and
it worked, then I added them back and it is working.
Thanks again.
Jim
--- Jeffrey Hawkins <[EMAIL PROTECTED]> wrote:
> There is a formatting issue with the Script File
> which
> you are having problems.  I have had problems with 
> this in the past (as a matter of fact yesterday),
> where there
> are extra spaces, or Windows File Formatting (CR/LF
> is different), or hidden Control Characters in the
> File.
> It doesn't matter whether the file has the correct
> permission, i.e. execute permission, the Shell will
> barf on the file.  The "missing file or directory
> error"
> is misleading.  The only solution is to retype the
> file -- at least I have not found any other
> solution...
> 
> Jeff 
> 
> ----- Original Message ----- 
> From: Jim Grunewald <[EMAIL PROTECTED]>
> To: Dima Nemchenko <[EMAIL PROTECTED]>
> Cc: Linux Diald <[EMAIL PROTECTED]>
> Sent: Sunday, May 14, 2000 1:50 PM
> Subject: Re: setting up masquerading
> 
> 
> > Dima,
> > You are not being patronizing. Yes, rc.firewall is
> > interpreted by sh. The first line is: #!/bin/sh.
> > Since I sent the original post I have tried
> sourcing
> > rc.firewall (. rc.firewall), executing the results
> of
> > the command, ls rc.firewall, (`ls rc.firewall`)
> and
> > also sourcing the results of ls rc.firewall (. `ls
> > rc.firewall`). I have added a script to my
> /etc/rc.d
> > directory named "foo" run with /bin/sh in which it
> > echos "THIS IS FOO", then does "ls rc.firewall"
> then
> > executes rc.firewall. It does everything correctly
> but
> > does not execute rc.firewall. I copied rc.firewall
> to
> > just plain "firewall". It All give the same
> results:
> > "ksh: rc.firewall: not found" or some variation!!!
> > Then, when in the /etc/rc.d directory, I give the
> > command "which rc.firewall" it gives me back
> > "/etc/rc.d/rc.firewall"!!! I have made sure that .
> is
> > in my path, I changed the permissions on the
> /etc/rc.d
> > directory to 777. I used the sh shell and then
> > executed rc.firewall. Nothing works! There's got
> to be
> > someting really stupid I'm (not) doing. 
> > Any ideas?
> > Thanks for reading this tirade ;-)
> > Jim
> > --- Dima Nemchenko <[EMAIL PROTECTED]>
> > wrote:
> > > Jim Grunewald wrote:
> > > > 
> > > > I'm trying to setup masquerading for my home
> > > network.
> > > > I looked on the Masquerade-HOWTO and got to
> the
> > > part
> > > > in testing it where I ping an outside address
> from
> > > the
> > > > masqueraded machine. That didn't work so the
> next
> > > > thing is to make sure my /etc/rc.d/rc.firewall
> > > script
> > > > works (I got it directly out of the HOWTO).
> When I
> > > > tried to run it by hand, my shell (ksh) would
> say
> > > that
> > > > it couldn't find it. I tried in the /etc/rc.d
> > > > directory, I tried using full path name, I
> tried
> > > > chmoding it to 777 (I'm root) and then running
> it.
> > > > Nothing worked. The file exists, ls sees it, I
> > > used
> > > > the -F option to display an '*' after the file
> > > name so
> > > > I'd see white space in the filename if there
> was
> > > any.
> > > > There was none.
> > > > In the rc.d directory I tried './rc.firewall',
> I
> > > also
> > > > tried cutting the name from the results of a
> > > directory
> > > > listing and pasting it to the command line.
> How
> > > else
> > > > can I run this script? I guess another thing I
> > > want to
> > > > make sure of is that masquerade support is
> > > compiled in
> > > > the kernel. Is there a way to tell?
> > > > Any help would be greatly appreciated.
> > > > Thanks,
> > > > Jim
> > > > 
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Send instant messages & get email alerts with
> > > Yahoo! Messenger.
> > > > http://im.yahoo.com/
> > > > 
> > > > -
> > > > To unsubscribe from this list: send the line
> > > "unsubscribe linux-diald" in
> > > > the body of a message to
> > > [EMAIL PROTECTED]
> > > 
> > > not being patronizing, but is the interpreter
> you
> > > use for the script
> > > there? like #!/bin/sh or whatever?
> > > 
> > > -- 
> > > :D_ima
> > > 
> > > Dima Nemchenko
> > > [EMAIL PROTECTED]
> > >
> >
>
---------------------------------------------------------------------
> > > "Eventually, every frog has to croak."
> > >                                         Louis,
> the
> > > "Budweiser Lizard"
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Send instant messages & get email alerts with
> Yahoo! Messenger.
> > http://im.yahoo.com/
> > 
> > -
> > To unsubscribe from this list: send the line
> "unsubscribe linux-diald" in
> > the body of a message to
> [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to