Re: redirecting keyboard entry to ascii file
Posted in 1998
Susan Goodman wrote: > > I am trying to redirect my input from keyboard entry to an ascii file > for a 4gl compiled program. I have been using the following method: > > fglgo 4glprogram_name < ascii_file > > This works for going through the menu, but when I get to a keyboard > entry that requires a carriage return, I bomb out of the 4gl program. > Does anyone have any suggestions? > > Please e-mail them to s1goodma@sc.blm.gov Try changing the \\n linefeeds in the ascii file to \\r carriage returns by piping through tr. If the ascii comes from a PC it may have \\r\\n at the ends of lines. tr can fix that too. -- Peter Lancashire Information Systems Specialist, Bayer plc Eastern Way, Bury St Edmunds, Suffolk, IP32 7AH, UK Tel: +44-1635-562258, Fax: +44-1635-562281 Mail: Peter.Lancashire.PL1@bayer.co.uk --- My Internet plumbing does not allow me to mail and post news together. Sorry. All opinions are my own and not those of Bayer plc. --- Join Infuse, the UK Informix User Group at http://www.infuse.co.uk/