From owner-freebsd-questions Thu Dec 7 11: 0:53 2000 From owner-freebsd-questions@FreeBSD.ORG Thu Dec 7 11:00:51 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 4F16637B400 for ; Thu, 7 Dec 2000 11:00:50 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 1446Hf-0003JE-00; Thu, 07 Dec 2000 19:00:48 +0000 Received: (from cliff@localhost) by buffy.raggedclown (8.10.2/8.10.2) id eB75qcB01526; Thu, 7 Dec 2000 06:52:38 +0100 Date: Thu, 7 Dec 2000 06:52:38 +0100 From: Cliff Sarginson To: Ray Qiu Cc: freebsd-questions@freebsd.org Subject: Re: rc.d startup and expect script Message-ID: <20001207065238.A1513@buffy.local> References: <20001206235240.37833.qmail@web9105.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001206235240.37833.qmail@web9105.mail.yahoo.com>; from ray_qiu@yahoo.com on Wed, Dec 06, 2000 at 03:52:40PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Dec 06, 2000 at 03:52:40PM -0800, Ray Qiu wrote: redirect it's standard input from somewhere with the shell command "<" (less than sign) .. just a suggestion :) Cliff > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message