I think he means
This works in the newer versions of the Korn shell like Korn93. Otherwise, Perderabo has posted examples of timing out a read by using coprocesses. Search the form on read timeout.
I want to prompt a user for input but I want it to timeout after a specified time if no response is given. I tried the sleep command but this does not work. I am using ksh.
Thanks. (10 Replies)
Hi All,
Is there any way to read the previous line in file reading ?
or
is there any way to read a line twice in KSH ?
thanks in advance !!
Srini (6 Replies)
I have a script that at some point will ask the interactive user a question:
#!/bin/ksh
echo "What is your access code?"
read ans
...
Sometimes this script is run by other scripts and there are no interactive users. The script then hangs on the "read" command, waiting for a user response... (5 Replies)
hello every one ,
this is my first participation in the forum , I hope it'll be a good start
within a script I would like to put some code to read i\p from standard i\p using read command if it reads Y it will terminate the script if it reads N it will continue execution , if no i\p is... (2 Replies)
Hi all,
I have a KSH script which is kicking off an sql scripts as follows:
/usr/local/installs/instantclient_10_2/sqlplus -s username/password @$sql_path/sql_query.sql > $tmp_path/sql_query_results
The problem I have is that sometimes the 10g Oracle Database spits out an error saying... (4 Replies)
i'm writing some code to simulate the boot progress after power on
but when i try to read the 2nd sector from a floppy disk, this operation always fail with ah=0x80h which means timeout, how can i get over this problem?
my code would be like this:
$ cat boot.S
.code16
#define SETUPLEN 4... (0 Replies)
i'm writing some code to simulate the boot progress after power on
but when i try to read the 2nd sector from a floppy disk, this operation always fail with ah=0x80h which means timeout, how can i get over this problem?
my code would be like this:
$ cat boot.S
.code16
#define SETUPLEN 4... (0 Replies)
i'm writing some code to simulate the boot progress after power on
but when i try to read the 2nd sector from a floppy disk, this operation always fail with ah=0x80h which means timeout, how can i get over this problem?
my code would be like this:
$ cat boot.S
.code16
#define SETUPLEN 4... (0 Replies)
I probably read all the threads in almost all the forums for a solution to my need. I am a beginner in shell scripting and I dont have a perfect solution yet. Below is my code snippet.
idql -n $REPOSITORY_NAME.$cs -Udmadmin -P"" -R$DM_SCRIPTS/test.api > /dev/null 2>&1
if ; then
echo... (7 Replies)
I saw several thread for this issue but none addresses my issue.
I have tried read -t but the result is read bad options
My requirement is
1. Ask for input
2. If input = y or no input in 60 seconds
then continue processing
else
exit
fi
Kindly consider this urgent. (8 Replies)
Discussion started by: rprasad
8 Replies
LEARN ABOUT DEBIAN
remctl_set_timeout
REMCTL_SET_TIMEOUT(3) remctl Library Reference REMCTL_SET_TIMEOUT(3)NAME
remctl_set_timeout - Set timeout for subsequent remctl client operations
SYNOPSIS
#include <remctl.h>
int remctl_set_timeout(struct remctl *r, time_t timeout);
DESCRIPTION
remctl_set_timeout() sets the timeout for connections and commands to timeout, which should be an integer number of seconds. timeout may
be 0 to clear a timeout that was previously set and restore the default behavior of having no timeout. All subsequent operations on the
given struct remctl argument will be subject to this timeout, including remctl_open() if called prior to calling remctl_open().
The timeout is a timeout on network activity from the server, not on a complete operation. So, for example, a timeout of ten seconds just
requires that the server send some data every ten seconds. If the server sends only tiny amounts of data at a time, the complete operation
could take much longer than ten seconds without triggering the timeout.
RETURN VALUE
remctl_set_timeout() returns true on success and false on failure. The only failure case is if timeout is negative. On failure, the
caller should call remctl_error() to retrieve the error message.
SEE ALSO remctl_new(3), remctl_command(3), remctl_open(3), remctl_output(3), remctl_error(3)
The current version of the remctl library and complete details of the remctl protocol are available from its web page at
<http://www.eyrie.org/~eagle/software/remctl/>.
AUTHOR
Russ Allbery <rra@stanford.edu>
COPYRIGHT AND LICENSE
Copyright 2012 The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is, without any warranty.
3.2 2012-06-19 REMCTL_SET_TIMEOUT(3)