01-27-2004
10 More Discussions You Might Find Interesting
1. Programming
The scenerio is:
1. A server listens on a port number
2. If the server is down and the Client tries to connect
3. How to set the timeout for the client
Detailed explaination:
In a client server architecture over a TCP/IP, normally the server is started first which waits and listens for the... (1 Reply)
Discussion started by: shilpi_gup
1 Replies
2. Shell Programming and Scripting
Hi all,
I want to set a timeout say 10 sec to shh prompt i.e. if no password is enetered for 10 sec prompt should again come to shell.
How can this be achieved ??
I am using Linux RHEL 5 and Solaris 10.
Pls help.
Thanks in adv.
VIKAS (3 Replies)
Discussion started by: vikas027
3 Replies
3. Shell Programming and Scripting
When I run a script where the 1st parameter is ip address
ftp -n -i -v $1
I hang here if the ip is wrong
how to set a timeout something like
if (20s not complete "ftp -n -i -v $1") then
echo "error"
fi
Thanks a lot. (14 Replies)
Discussion started by: uativan
14 Replies
4. UNIX for Dummies Questions & Answers
I've created a script that checks the health of a piece of equipment out in the field by first establishing that it is pingable, and then parsing
log files to gather information. Today I realized that there are times where the equipment may be pingable, and will not show any
immediate issues in... (1 Reply)
Discussion started by: DeCoTwc
1 Replies
5. Shell Programming and Scripting
SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies
6. AIX
Friends,
Could anyone let me know - how to set the timeout value for ssh session to HMC? My HMC version is -- V7R7.4.0. I'm sure the version doesn't have anything to do with it.
Thanks,
-- Souvik (2 Replies)
Discussion started by: thisissouvik
2 Replies
7. Red Hat
How is it possible to set the screensaver timeout on red hat.
For solaris I understand it is :
for file in /usr/dt/config/*/sys.resources; do
dir=`dirname $file | sed s/usr/etc/`
mkdir -p $dir
echo 'dtsession*saverTimeout: 10' >>$dir/sys.resources
echo 'dtsession*lockTimeout: 10'... (0 Replies)
Discussion started by: alvinoo
0 Replies
8. Shell Programming and Scripting
I have a command to check the status of hostname and port number,
echo > /dev/tcp/hostname/80
echo $?
0
success case
echo > /dev/tcp/hostname/809999
I got the output
-------------------
connection timed out
It took almost 4 minutes to time out,,, how can I set it to 10 seconds?
my... (2 Replies)
Discussion started by: sam@sam
2 Replies
9. Linux
Hello friends,
I work on Linux servers via SSH (putty) and run "screen" to preserve my sessions so I can attach/detach them at anytime I wish without losing the connectivity/process disruption which is working perfectly fine.
As my team members also have root access to those servers, it is... (7 Replies)
Discussion started by: prvnrk
7 Replies
10. AIX
I have to make a command to work when connecting to AIX 7.1 (used by an internal software).
I have a linux server L where the following command is runned ssh -t <aix-server-ip> ls
For a <non-aix-server-ip> the command runs successfully.
For AIX the terminal just gets blocked.
ssh connection... (5 Replies)
Discussion started by: ufo
5 Replies
LEARN ABOUT SUNOS
shutdown
shutdown(1B) SunOS/BSD Compatibility Package Commands shutdown(1B)
NAME
shutdown - close down the system at a given time
SYNOPSIS
/usr/ucb/shutdown [-fhknr] time [warning-message...]
DESCRIPTION
shutdown provides an automated procedure to notify users when the system is to be shut down. time specifies when shutdown will bring the
system down; it may be the word now (indicating an immediate shutdown), or it may specify a future time in one of two formats: +number and
hour:min. The first form brings the system down in number minutes, and the second brings the system down at the time of day indicated in
24-hour notation.
At intervals that get closer as the apocalypse approaches, warning messages are displayed at terminals of all logged-in users, and of users
who have remote mounts on that machine.
At shutdown time a message is written to the system log daemon, syslogd(1M), containing the time of shutdown, the instigator of the shut-
down, and the reason. Then a terminate signal is sent to init, which brings the system down to single-user mode.
OPTIONS
As an alternative to the above procedure, these options can be specified:
-f Arrange, in the manner of fastboot(1B), that when the system is rebooted, the file systems will not be checked.
-h Execute halt(1M).
-k Simulate shutdown of the system. Do not actually shut down the system.
-n Prevent the normal sync(2) before stopping.
-r Execute reboot(1M).
FILES
/etc/rmtab remote mounted file system table
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
fastboot(1B), login(1), halt(1M), reboot(1M), syslogd(1M), sync(2), rmtab(4), attributes(5)
NOTES
Only allows you to bring the system down between now and 23:59 if you use the absolute time for shutdown.
SunOS 5.10 11 Oct 1994 shutdown(1B)