08-25-2010
How to introduce delay in Shell Script till a key stroke.
Hi All,
How to introduce delay in the Bash/Shell Script till key stroke.
Below is the requirement..
1.Execute set of commands.
2.Display the message echo "press any key to continue"
Introduce a delay till key stroke.
3.Execute next set of commands.
Thanks in Advance
Sunil.K
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
without pressing the enter key ..manually...
how can we read the enter key ..from the shell script..so that the script termintes automatically.
eg:
telnet a.b.c.d xxxx
now " how to read the enter key" tho terminate the script (1 Reply)
Discussion started by: bishweshwar
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Please tell me substitute for esc+\ (used in solaris) in case of sco unix.
Thanks,
Pintu (1 Reply)
Discussion started by: pintupatro
1 Replies
3. Shell Programming and Scripting
Hi all,
i would like to know how to introduce a delay in the execution of a cmd?
am trying to copy a file which is about 650 mb and then perform some actions on it..
however since its huge i would like to introduce a delay in exection until the process is over
i dont want it to proceed to... (10 Replies)
Discussion started by: wrapster
10 Replies
4. Shell Programming and Scripting
i have script like:
echo "enter name"
read a
I do not want to press enter key
i have tried with ascill of enter as (\013) but still it wait for enter ,
please resolve my problem (2 Replies)
Discussion started by: RahulJoshi
2 Replies
5. Shell Programming and Scripting
Hello,
My goal is to run the same Shell script in a parallel mode. This script will get triggered from different machines and different application teams by some job scheduling tool.
They may trigger the process at the same time. so I want to have them in QUEUE ..and release them for execution on... (3 Replies)
Discussion started by: chetan_sonar
3 Replies
6. Shell Programming and Scripting
Hi,
I recently would like to write a shell script that
1. Runs in the background (can be done with "&", but i'd be happy for other solutions to keep programs running)
2. Does its stuff
3 THEN checks a specified folder for a size change over time (say, each 5 seconds. AND ONLY continues with... (9 Replies)
Discussion started by: pasc
9 Replies
7. Shell Programming and Scripting
I need to put a small delay into a shell script. I'm looking for something smaller than "sleep" - a second is way too long. I want to sleep something like 10 milliseconds. I've tried "usleep" and "nanosleep", but the script doesn't recognize them.
I'm using the bash shell but I'm willing to... (9 Replies)
Discussion started by: harmlesscat
9 Replies
8. UNIX for Dummies Questions & Answers
" Script for display sentences with special character"
Hi,
Could any one share a command how to display a line until my target word.
For ex: My file has the content as:
select * from db_wrk where col1 < col2
insert into table_name values('1','2','tst','wrk','dev','prod')
My target... (10 Replies)
Discussion started by: Kalaiselvi66
10 Replies
9. Shell Programming and Scripting
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Discussion started by: Rajeev_hbk
4 Replies
10. Shell Programming and Scripting
Hi Friends,
I am unable to pass Enter key stroke to shell script. Tried all options, but no luck.
Please help..
Script: bkpscript.sh
tam01# ./bkpscript.sh < file.txt
Mount volume 1 on /dev/rmt0.
Press Enter to continue.
tam01#
tam01#
tam01#
tam01# echo ""... (5 Replies)
Discussion started by: suresh3566
5 Replies
KeyMap(3U) InterViews Reference Manual KeyMap(3U)
NAME
KeyMap - activates controls given their keyboard equivalents
SYNOPSIS
#include <Unidraw/keymap.h>
DESCRIPTION
KeyMap supports keyboard equivalents, which allow the user of a Unidraw application to execute menu commands or select from a palette of
controls by typing rather than pointing and clicking with the mouse. The KeyMap can activate a control given its key code as defined by its
ControlInfo object. Only those controls registered with the KeyMap can be activated through the KeyMap. By default, the Editor base class
handles key events by having its KeyMap execute the key code.
PUBLIC OPERATIONS
KeyMap()
Construct a new keymap, initially with no registrants.
void Register(UControl*)
void Register(KeyMap*)
void Unregister(UControl*)
void Unregister(KeyMap*)
Register and unregister a control or another KeyMap. Registering a KeyMap is equivalent to registering all its registered controls
individually.
void Execute(const char* keyCode)
Execute the given key code by activating the corresponding control. Each UControl contains a ControlInfo object that specifies its
key code; thus the mapping between key codes and controls is defined by the ControlInfo objects collectively. Key codes among reg-
istered controls should be unique.
SEE ALSO
ControlInfo(3U), KeyMap(3U), UControl(3U), kybd(3U)
Unidraw 1 August 1990 KeyMap(3U)