Re: Redirecting input for PROMPT Statement
Posted in 1995
> > The statment in the example was: > > PROMPT "Are you done" FOR CHAR ans > > In this case, I believe the echo/pipe trick will always work. The "FOR > CHAR" will trigger on the typed character no matter what your accept > key is. If the statement is something else, then perhaps something > like: > > echo "y^]" | fglgo test1 > > will work. (Entered, using vi, as Control-V + Escape) When the input is single character granted. I knew a fellow who used PROMPT statements as a data input mechanism - so it had to handle an entire data line. Interesting that. cheers j. _____________________________________________________________________________ Jack Parker - Hewlett Packard, DMD/IS Boise, Idaho, USA jparker@hpbs3645.boi.hp.com _____________________________________________________________________________ Back up my hard drive? You mean these things can actually run in reverse? _____________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. _____________________________________________________________________________