faisal gillani wrote:
> 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 ?
Yes. One way would be using "expect" -- I'd tell you more but I've
never actually used it (yet -- I've used things like it in dos). Look
at man expect, or "expect" or "expect script" on Google.
Sorry I can't be more helpful,
Randy Kramer