From owner-freebsd-questions Thu Jul 27 13:27:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web3206.mail.yahoo.com (web3206.mail.yahoo.com [204.71.202.203]) by hub.freebsd.org (Postfix) with SMTP id 7DF3437C09E for ; Thu, 27 Jul 2000 13:27:21 -0700 (PDT) (envelope-from danfairs@yahoo.co.uk) Message-ID: <20000727202720.27708.qmail@web3206.mail.yahoo.com> Received: from [212.49.248.201] by web3206.mail.yahoo.com; Thu, 27 Jul 2000 21:27:20 BST Date: Thu, 27 Jul 2000 21:27:20 +0100 (BST) From: =?iso-8859-1?q?Dan=20Fairs?= Subject: Shell Script Execution To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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