[SunHELP] script help ...

Lund, Dennis sunhelp at sunhelp.org
Thu Jul 5 07:17:14 CDT 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1054C.6CECB4B0
Content-Type: text/plain

If you want to answer "yes" to any question asked by "fsck" use the -y
option.
Use the dev path to the partition not the partition name.

	# fsck -y /dev/rdsk/c0t0d0s0

Read the man page for "fsck".

Dennis L. Lund

-----Original Message-----
From: faisal gillani [mailto:fasi_74 at yahoo.com]
Sent: Thursday, July 05, 2001 3:36 AM
To: sunhelp at sunhelp.org
Subject: [SunHELP] script help ...


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 ?

thanks
Faisal



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


<html>
<body>
<font size="3" face="Times New Roman"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
<span style="font-size:10.0pt;font-family:Times New Roman;
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"></span><font face="Times New Roman" size="3"><span style="mso-fareast-font-family:Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.</span></font></p>
</body>
</html>

------_=_NextPart_001_01C1054C.6CECB4B0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [SunHELP] script help ...</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>If you want to answer "yes" to any question ask=
ed by "fsck" use the -y option.</FONT>
<BR><FONT SIZE=3D2>Use the dev path to the partition not the partition name=
.</FONT>
</P>

<P>        <FONT SIZE=3D2># fsck -y /dev=
/rdsk/c0t0d0s0</FONT>
</P>

<P><FONT SIZE=3D2>Read the man page for "fsck".</FONT>
</P>

<P><FONT SIZE=3D2>Dennis L. Lund</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: faisal gillani [<A HREF=3D"mailto:fasi_74 at yahoo.co=
m">mailto:fasi_74 at yahoo.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Thursday, July 05, 2001 3:36 AM</FONT>
<BR><FONT SIZE=3D2>To: sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: [SunHELP] script help ...</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>hello there</FONT>
</P>

<P><FONT SIZE=3D2> can any one help me in making a small script all i<=
/FONT>
<BR><FONT SIZE=3D2>want is that my system</FONT>
<BR><FONT SIZE=3D2>runs itself in single user mode , then run fsck on / ,</=
FONT>
<BR><FONT SIZE=3D2>then return to normal</FONT>
<BR><FONT SIZE=3D2>mode...</FONT>
</P>

<P><FONT SIZE=3D2>i know the commands</FONT>
</P>

<P><FONT SIZE=3D2>1,  init 1</FONT>
<BR><FONT SIZE=3D2>2,  fsck /</FONT>
<BR><FONT SIZE=3D2>3,  init 6</FONT>
</P>

<P><FONT SIZE=3D2>i am stuck in how can i give the answers to the</FONT>
<BR><FONT SIZE=3D2>command automatically ... is</FONT>
<BR><FONT SIZE=3D2>it possible ?</FONT>
</P>

<P><FONT SIZE=3D2>thanks</FONT>
<BR><FONT SIZE=3D2>Faisal</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>__________________________________________________</FONT>
<BR><FONT SIZE=3D2>Do You Yahoo!?</FONT>
<BR><FONT SIZE=3D2>Get personalized email addresses from Yahoo! Mail</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://personal.mail.yahoo.com/" TARGET=3D"_b=
lank">http://personal.mail.yahoo.com/</A></FONT>
<BR><FONT SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhe=
lp" TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></=
FONT>
</P>

<CODE><FONT SIZE=3D3><BR>
<BR>
<html><BR>
<body><BR>
<font size=3D"3" face=3D"Times New Roman"><span style=3D"mso-fareast-font-f=
amily: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-=
US; mso-bidi-language: AR-SA"><BR>
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -<BR>
<span style=3D"font-size:10.0pt;font-family:Times New Roman;<BR>
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US=
;mso-fareast-language:<BR>
EN-US;mso-bidi-language:AR-SA"></span><font face=3D"Times New Roman" size=
=3D"3"><span style=3D"mso-fareast-font-family:Times New Roman; mso-ansi-lan=
guage: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e=
-mail and any attachments may contain information which is confidential, pr=
oprietary, privileged or otherwise protected by law. The information is sol=
ely intended for the named addressee (or a person responsible for deliverin=
g it to the addressee). If you are not the intended recipient of this messa=
ge, you are not authorized to read, print, retain, copy or disseminate this=
 message or any part of it. If you have received this e-mail in error, plea=
se notify the sender immediately by return e-mail and delete it from your c=
omputer.</span></font></p><BR>
</body><BR>
</html><BR>
</FONT></CODE></BODY>
</HTML>
------_=_NextPart_001_01C1054C.6CECB4B0--



More information about the SunHELP mailing list