11-04-2008
Hi,
ls command is failing too.
We have a script which takes the backup of the database.
Doing cd to a directory is one of the steps.
The directories are not properlu mounted and hence cd command is failing.
I want to know is there a way where i can timeout the cd command?
10 More Discussions You Might Find Interesting
1. HP-UX
How can I kick a user out after being idle for a certain amount of time, would prefer not to use scripts, will TMOUT work on HP-UX? (5 Replies)
Discussion started by: csaunders
5 Replies
2. Solaris
Hello everyone
I am a new one,I want to know how to get the solaris force the loginer out if he do not in a time
thanks (4 Replies)
Discussion started by: lyh003473
4 Replies
3. Shell Programming and Scripting
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)
Discussion started by: rm-r
5 Replies
4. Linux
Hi All
I have a nice little script that i have written in Perl, in it use RSH ( yes i know it is i should being using ssh, but it i secure network it is being run on) the idea of the script it that it will RSH into a machine and then follow out a command, the problem i am running into is if the... (3 Replies)
Discussion started by: John101
3 Replies
5. Shell Programming and Scripting
HI,
Does anybody know if its possible to execute a command through exec,
shell exec, system and if the program doesn't terminate in N seconds
returns control to PHP ?
reg,
research3
---------- Post updated 10-16-09 at 12:20 AM ---------- Previous update was 10-15-09 at 11:03 PM... (1 Reply)
Discussion started by: research3
1 Replies
6. Shell Programming and Scripting
Hi,
I've written a very robust script to get an external IP address from 'behind' a router. It uses many web pages randomly choosing which one/ones to use at run time. The "fetch the web page containing the IP address" is handled by either wget or curl both of which have their 'max time for the... (6 Replies)
Discussion started by: gencon
6 Replies
7. Shell Programming and Scripting
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)
Discussion started by: vishnudev1
7 Replies
8. Shell Programming and Scripting
Hi All,
I have a situation where we need to send out mails from our Unix server to different mailing ids inside our scripts.The mails are working fine.But we have occasional issues where we are getting time out errors from the SMTP server while sending out mails.
Command that we are using... (3 Replies)
Discussion started by: DevotedPupil
3 Replies
9. Shell Programming and Scripting
Hi,
I am running a ssh connection test in a script, how can I add a timeout to abolish the process if it takes too long?
ssh -i ~/.ssh/ssl_key useraccount@computer1
Thank you.
- j (1 Reply)
Discussion started by: hce
1 Replies
10. Shell Programming and Scripting
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)