Date: Thu, 27 Jul 2000 21:27:20 +0100 (BST) From: =?iso-8859-1?q?Dan=20Fairs?= <danfairs@yahoo.co.uk> To: freebsd-questions@freebsd.org Subject: Shell Script Execution Message-ID: <20000727202720.27708.qmail@web3206.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi all,
This is a silly little problem, but I can't figure out what's going on.
I'm setting up qmail (incidentally) and have created the startup
script. On trying to execute it, this happens:
[root@bonsai rc.d]$ ./qmail.sh cdb
bash: ./qmail.sh: No such file or directory
[root@bonsai rc.d]$ ls -l qmail.sh
-rwxr-xr-- 1 root wheel 2492 Jul 27 20:11 qmail.sh
[root@bonsai rc.d]$ whoami
root
[root@bonsai rc.d]$ file qmail.sh
qmail.sh: Bourne shell script text
[root@bonsai rc.d]$ head qmail.sh
#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
case "$1" in
start)
echo -n "Starting qmail: svscan"
cd /var/qmail/supervise
env - PATH="$PATH" svscan &
[root@bonsai rc.d]$ which sh
/bin/sh
[root@bonsai rc.d]$
So why am I getting that "No such file..." error? Everything seems to
be there, with permissions set... It's clearly something obvious that
I'm missing.
Help much appreciated.
Regards,
Dan
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000727202720.27708.qmail>
