RE: Using enter key in bash script

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

 



If you are using bash simply use the read statement. For example:


#!/bin/bash

echo -e "\nDemonstration text.\n"
echo -n "Press ENTER to continue"
read


John

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of a bv
Sent: Wednesday, December 15, 2010 4:00 AM
To: redhat-list@xxxxxxxxxx
Subject: Using enter key in bash script

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

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

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