Stephen F. Bosch <[EMAIL PROTECTED]> wrote on Wed, 29 Mar 2000:
> Irwan Hadi wrote:
>
> > I'm becoming quite desperate now, because qmail still refuse to run under
> > init script
> > I use init script from Live With qmail, and after I've done all the
> > requirements and do
> > . /usr/local/sbin/qmail start
> > then the result
> > : command not found
> > ': not a valid identifier
> > : command not found
> > 'ash: /usr/local/sbin/qmail: line 6: syntax error near unexpected token ' in
> > 'ash: /usr/local/sbin/qmail: line 6: 'case "$1" in
Looks like a classic case of having DOS/Windows-style line endings in
a shell script, instead of Unix-style. Get rid of the ctrl-M characters
and it should work fine after that. Something like:
tr -d '\r' < oldfile > newfile
... should do the trick, if your favourite editor won't allow you to
remove them.
> What shell are you using?
Judging from the output, bash.
Hope this helps,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
ST, DS9: FRofA #1: Once you have their money ... never give it back.