From owner-freebsd-questions Wed Dec 6 15:52:45 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 15:52:43 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from web9105.mail.yahoo.com (web9105.mail.yahoo.com [216.136.128.242]) by hub.freebsd.org (Postfix) with SMTP id 26A8B37B402 for ; Wed, 6 Dec 2000 15:52:40 -0800 (PST) Message-ID: <20001206235240.37833.qmail@web9105.mail.yahoo.com> Received: from [4.16.36.97] by web9105.mail.yahoo.com; Wed, 06 Dec 2000 15:52:40 PST Date: Wed, 6 Dec 2000 15:52:40 -0800 (PST) From: Ray Qiu Subject: rc.d startup and expect script To: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I ran into a problem and could not resolve it. I want to run an expect script during the boot process. So I create the script named as "abc.sh", and I put it under the /usr/local/etc/rc.d. This script runs ok in the command line. I also add & to force it to run background. It runs and machine boots up ok. But if I type "ps ax" the process is hanging there like this: PID TT STAT TIME COMMAND 205 con- I 0:00.02 /usr/sbin/expect /root/listip Someone mentioned that if the script trys to grap the console, it will fail. But since it is an expect script(interactive), it needs the console output. How can I solve the problem? Any help is well appreciated. Regards, Ray __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message