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 OSF1
showmount
showmount(8) System Manager's Manual showmount(8)NAME
showmount - Shows remote NFS compatible mounts on a host
SYNOPSIS
showmount [-adeT] [-t nnn] [host]
FLAGS
Lists all mount points in the form: hostname:dirpath. In this form, hostname is the name of a client that has remotely mounted a directory
from an NFS server, and dirpath is the directory that has been mounted. Lists only directories that have been remotely mounted by clients.
Shows host's exports list. Specifies an infinite timeout. The default timeout value is 25 seconds. Specifies a timeout value, in sec-
onds. The default timeout value is 25 seconds.
The default value for host is the current hostname.
DESCRIPTION
The showmount command shows status information about the NFS server on host. By default, it prints the names of all hosts that have NFS
file systems mounted from the server host. See NFS: Network File System Protocol Specification, RFC1094, Appendix A for a detailed
description of the protocol.
NOTES
The mountd daemon running on the server only has an idea of the actual mounts, since the NFS server is stateless. showmount will only dis-
play the information as accurately as the mount daemon reports it.
The default timeout value of 25 seconds can be too brief to read and verify an export list. If you receive timeout messages when using the
showmount -e command, use either the -T or the -t options to increase the timeout value.
FILES
Specifies the command path Contains a table of local file systems mounted by remote NFS clients
RELATED INFORMATION
Commands: mount(8)
Daemons: mountd(8)
Files: mountdtab(4) delim off
showmount(8)