Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2000 06:52:38 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        Ray Qiu <ray_qiu@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rc.d startup and expect script
Message-ID:  <20001207065238.A1513@buffy.local>
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
References:  <20001206235240.37833.qmail@web9105.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001207065238.A1513>