Using enter key in bash script

Romeo Theriault romeotheriault at gmail.com
Wed Dec 15 12:35:57 UTC 2010


On Wed, Dec 15, 2010 at 8:59 PM, a bv <vbavbalist at gmail.com> 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?


If you're trying to automate what is usually an interactive process I
think you'll have to use something like 'expect' or a derivative
thereof, such as the perl or python expect modules.

Google should help you out with this.


-- 
Romeo Theriault
System Administrator
Information Technology Services




More information about the redhat-list mailing list