Date: Wed, 6 Dec 2000 15:52:40 -0800 (PST) From: Ray Qiu <ray_qiu@yahoo.com> To: freebsd-questions@FreeBSD.ORG Subject: rc.d startup and expect script Message-ID: <20001206235240.37833.qmail@web9105.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001206235240.37833.qmail>