Udah Solve, jawabannya ada di milis qmail berikut :
"Warren 'Llama' Ernst" <[EMAIL PROTECTED]> wrote:
>So I'm installing qmail on my RedHat 6
distrubution a la the "Life with
>qmail" document, and its going great (I've been
doing a little each day all
>week) until section 2.8.2 when I am suppposed to
type "/usr/local/sbin/qmail
>cdb"
>
>Well, I do this, and I get "bash:
/usr/local/sbin/qmail: No such file or
>directory"
>
>So I do an ls -l and see the qmail entry in
/usr/local/sbin is the link to:
>"qmail -> /etc/rc.d/init.d/qmail" and its
permission is "lrwxrwxrwx"
>
>In checking /etc/rc.d/init.d/, i see that qmail
is the executable script
>"qmail" frmom the beginning of section 2.8.2,
but I can't execute it here
>either. It looks like:
>[root@lllama init.d]# qmail
>bash: qmail: command not found
>[root@lllama init.d]# ./qmail
>bash: ./qmail: No such file or directory
OK, these are classic symptoms of a bad "magic
number". The top line
of the qmail script should look like:
#!/bin/sh
That tells the exec() system call that the file
is a script, and the
interpreter is /bin/sh.
1) Verify that the first line of your script is
correct:
head -1 /usr/local/sbin/qmail |od -c
0000000 # ! / b i n / s h
\n
0000012
If you get the following:
0000000 # ! / b i n / s h
\r \n
0000013
The problem is that your browser or the
InfoAve web server
"helpfully" converted the UNIX text file
format (newline) into DOS
text format (CRLF). If that's the case, you
can convert it back by
doing:
tr -d '\012' </usr/local/sbin/qmail
>/tmp/foo
cp /tmp/foo /usr/local/sbin/qmail
If you get anything else, edit the file,
delete the first line,
and re-enter it. Or re-download the script.
2) Verify that /bin/sh is a working shell:
/bin/sh
You should get no error messages, and a "$ ",
"bash$ ", or similar
prompt. Commands like "ls" and "ps" should
work. Hit ^D to exit the
shell.
If this fails, you've got serious problems.
3) Try "bash /usr/local/sbin/qmail cdb". If that
works, the problem is
definitely in the "magic number".
-Dave
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]