Computing.Net > Forums > Linux > syntax error: unexpected end of fil

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

syntax error: unexpected end of fil

Reply to Message Icon

Name: prash11
Date: February 9, 2009 at 22:07:22 Pacific
OS: linix
CPU/Ram: 512
Product: Intel / HP
Subcategory: Configurations
Comment:

#!/bin/sh

# description: the qmail MTA

PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`

case "$1" in
start)
echo "Starting qmail"
if svok /service/qmail-send ; then
svc -u /service/qmail-send /service/qmail-send/log
else
echo "qmail-send supervise not running"
fi
if svok /service/qmail-smtpd ; then
svc -u /service/qmail-smtpd /service/qmail-smtpd/log
else
echo "qmail-smtpd supervise not running"
fi
if [ -d /var/lock/subsys ]; then
touch /var/lock/subsys/qmail
fi
;;
stop)
echo "Stopping qmail..."
echo " qmail-smtpd"
svc -d /service/qmail-smtpd /service/qmail-smtpd/log
echo " qmail-send"
svc -d /service/qmail-send /service/qmail-send/log
if [ -f /var/lock/subsys/qmail ]; then
rm /var/lock/subsys/qmail
fi
;;
stat)
svstat /service/qmail-send
svstat /service/qmail-send/log
svstat /service/qmail-smtpd
svstat /service/qmail-smtpd/log
qmail-qstat
;;
doqueue|alrm|flush)
echo "Flushing timeout table and sending ALRM signal to qmail-send."
/var/qmail/bin/qmail-tcpok
svc -a /service/qmail-send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /service/qmail-send
;;
pause)
echo "Pausing qmail-send"
svc -p /service/qmail-send

whenever i try this sript i got foling errors plz help me for this

/bin/qmailctl: line 116: unexpected EOF while looking for matching `"'
/bin/qmailctl: line 122: syntax error: unexpected end of file




Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: February 10, 2009 at 07:42:50 Pacific
Reply:


The case statement isn't being terminated with:

svc -p /service/qmail-send
;;
esac


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: syntax error: unexpected end of fil

syntax error: unexpected end of file www.computing.net/answers/linux/syntax-error-unexpected-end-of-file/9663.html

Amsn unexpected end of file www.computing.net/answers/linux/amsn-unexpected-end-of-file/23770.html

running crontab at last day of mont www.computing.net/answers/linux/running-crontab-at-last-day-of-mont/27771.html