Re: Using enter key in bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux