On Wed, Jan 23, 2002 at 12:11:52PM +0000, Waider wrote:
> According to Declan Grady:
> > . ifup ippp0
> > . ndc start
> > . /usr/local/squid/bin/squid
>> 1. Those dots are there why?
I didn't notice those dots in the first post - blame my molars :-( Of course
they're the source of the grief and I presume they're there because somebody
copied something else with being too sure what he was doing (I tried really
hard to be nice :-) ) The line
. ifup ippp0
in a shell script tells the shell which is processing the script to find the
file ifup (looks along $PATH which I find odd, but that's the behaviour) and
attempts to run the commands contained in it as shell commands so if ifup
isn't on that shell's path, or is not a script (I presume it is), it won't
be sourced. The ndc and squid lines (presuming we are talking about BIND's
ndc) definitely won't work because these are ELF executables and not shell
scripts. Replace the three offending lines with
and you should be sorted.
However, I'd further ask what distro you're using - any current distro
should have a full set of start/stop scripts for these three things.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!