![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ssh/scp - can you specify timeout? | frustrated1 | Shell Programming and Scripting | 3 | 01-02-2008 04:57 PM |
| Giving "read" from standard input a timeout. | rello | Shell Programming and Scripting | 10 | 07-08-2005 05:54 AM |
| About the Timeout | lyh003473 | SUN Solaris | 4 | 07-24-2004 06:12 PM |
| timeout | csaunders | HP-UX | 5 | 02-27-2004 07:54 AM |
| how to set timeout for aix? | ichiro | UNIX for Dummies Questions & Answers | 3 | 01-27-2004 03:36 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ksh read timeout
any idea on how to timeout the read statement for ksh?
for bash u can use read -t option -t timeout Cause read to time out and return failure if a complete line of input is not read within timeout seconds. This option has no effect if read is not reading input from the terminal or a pipe. thanks in advance! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Not sure, if this is the right answer. man ksh says
Code:
TMOUT If set to a positive integer in an interactive shell, it speci-
fies the maximum number of seconds the shell will wait for input
after printing the primary prompt (PS1). If the time is
exceeded, the shell exits.
|
|
#3
|
|||
|
|||
|
I think he means
Code:
read -t10 variable_name |
|||
| Google The UNIX and Linux Forums |