From owner-freebsd-questions Thu Jul 5 13:47:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id CE69E37B401 for ; Thu, 5 Jul 2001 13:47:47 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 37570 invoked by uid 100); 5 Jul 2001 20:47:45 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15172.53873.183658.68976@guru.mired.org> Date: Thu, 5 Jul 2001 15:47:45 -0500 To: faisal gillani Cc: questions@freebsd.org Subject: Re: script help ... In-Reply-To: <32368534@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG faisal gillani types: > hello there > > can any one help me in making a small script all i > want is that my system > runs itself in single user mode , then run fsck on / , > then return to normal > mode... > > i know the commands > > 1, init 1 > 2, fsck / > 3, init 6 > > i am stuck in how can i give the answers to the > command automatically ... is > it possible ? Not in a single script. Shutting down to single user mode requires killing the script, so you have to stop. If you could tell us what you're trying to accomplish, we might be able to help with that. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message