Re: Using enter key in bash script

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

 



On Wed, Dec 15, 2010 at 8:59 PM, a bv <vbavbalist@xxxxxxxxx> 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

-- 
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