Using enter key in bash script

Nigel Wade nmw at ion.le.ac.uk
Wed Dec 15 15:15:42 UTC 2010


On 15/12/10 11:59, a bv wrote:
> Hi,
> 
> I want to write a script which will run a command  that gives some
> written information and needs to press enter key to go on keyboard.
> Then it will ftp its output etc.
> 
> How can i easily make this enter key issue on the script?
> 
> Regards
> 

Another option, if there's a lot of info, is to pipe the output through
'less' so it gets paged. Maybe add the '-e' option so that enter will
exit less rather than the default of having to use 'q'.

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw at ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555




More information about the redhat-list mailing list