faqts : Computers : Internet : Mail Servers : qmail : Life with qmail

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

35 of 39 people (90%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

Why does startup script say "no such file"?

May 10th, 2000 06:00
Dave Sill, Petr Novotny


Check the "magic number" (the first line of the script):
head -1 /usr/local/sbin/qmail | od -c
You should see:
0000000   #   !   /   b   i   n   /   s   h  \n
0000012
If you see something that ends with "\r  \n", then the file is in DOS
format, and you can fix it by doing:
tr -d '\015' </usr/local/sbin/qmail >/tmp/foo
cp /tmp/foo /usr/local/sbin/qmail