On Sun, Sep 20, 2009 at 10:00 AM, Nadeem M. Khan <[email protected]>wrote:

> On Thu, Sep 17, 2009 at 10:01 PM, Raj Mathur <[email protected]> wrote:
> > On Thursday 17 Sep 2009, steve wrote:
> >> [snip]
> >> Ummm, the literal space (" ") character doesn't work ? ...before
> >>  command3 (as in ") command3" or after command2 (as in "command2 ") ?
> >
> > Not clear on what the OP wants, so no comment here.
>
> Raj, I thought I was pretty clear in explaining what I needed. Let me
> give an example of how a sample script works with user intervention,
> and then without user intervention, autmated by here documents.
>
> With user intervention:
>
> #samplescript.ksh
> Are you sure you want to continue (y/n) ?  y
> Enter number of blah blah[1-1000] 500
> Hit the space bar to continue: I have to hit space bar here
> Are these setting correct? (y/n) y
> #
>
> Without user intervention using here documents:
>
> #samplescript.ksh <<EOF
> y
> 500
> this line is where I need the list's help
> y
> EOF
>
> Thanks,
> Nadeem.
> --
> http://mm.glug-bom.org/mailman/listinfo/linuxers
>

You can save these thing in file and apply a redirection ,

$samplescript.ksh < test.txt

I am attaching file. Hope it will work,.
-- 
┌─────────────────────────┐
│    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
│    Web : http://narendra.techfandu.org
│    Twitter : http://tinyurl.com/dz7e4a
└─────────────────────────┘
y
500
 
y



-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to