If I want a script to sleep for less than a second, would I use a decimal? In other words, if I wanted my script to sleep for 1/4 of a second, would I say, SLEEP .25 ?? (5 Replies)
Does anyone know a way to sleep less than 1 second?
Sometimes when I write scripts that iterates a loop many times it would be
nice to slow things down, but sometimes 1 second is too much. (9 Replies)
unistd.h declares the prototype of the sleep function. where is the sleep function actually defined? where is the control transfered when we include a sleep call in it?? (2 Replies)
This is a very crude attempt in Bash at something that I needed but didn't seem to find in the 'sleep' command. However, I would like to be able to do it without the need for the temp file. Please go easy on me if this is already possible in some other way:
How many times have you used the... (5 Replies)
Hi techies ..
This is my first posting hr ..
Am facing a serious performance problem in counting the number of lines in the file. The input files i get will be in some 10 to 15 Gb of size or even sometimes more ..and I will load it to db
I have used wc -l to confirm whether the loader... (14 Replies)
Is there any other editor, installed by 'default' in Sparc Solaris10, besides vi?
I'd like to avoid installing anything new.
If not, how to make vi more user-friendly?
thanks. (8 Replies)
while sleep 1; do
pgrep Polo || {
kill `pidof Polo` >/dev/null
/var/bin/polo_start.sh start &
echo `date` R >> /var/log/Check_Polo .log
}
done
exit 0well , i use that script as a watchdog in my box (with has just 32 mb memory) which check every second if... (8 Replies)
Hi,
I have a script that runs a process at the beginning and I want to sleep/wait until this process is finished and then continue with the rest of the script. I am trying with this, but it is not working:
process=`ps -ef | grep "proc_p01 -c" | grep -v grep | wc -l`
if ; do
sleep 10
done... (7 Replies)
Discussion started by: apenkov
7 Replies
LEARN ABOUT DEBIAN
pam_faildelay
PAM_FAILDELAY(8) Linux-PAM Manual PAM_FAILDELAY(8)NAME
pam_faildelay - Change the delay on failure per-application
SYNOPSIS
pam_faildelay.so [debug] [delay=microseconds]
DESCRIPTION
pam_faildelay is a PAM module that can be used to set the delay on failure per-application.
If no delay is given, pam_faildelay will use the value of FAIL_DELAY from /etc/login.defs.
OPTIONS
debug
Turns on debugging messages sent to syslog.
delay=N
Set the delay on failure to N microseconds.
MODULE TYPES PROVIDED
Only the auth module type is provided.
RETURN VALUES
PAM_IGNORE
Delay was successful adjusted.
PAM_SYSTEM_ERR
The specified delay was not valid.
EXAMPLES
The following example will set the delay on failure to 10 seconds:
auth optional pam_faildelay.so delay=10000000
SEE ALSO pam_fail_delay(3), pam.conf(5), pam.d(5), pam(7)AUTHOR
pam_faildelay was written by Darren Tucker <dtucker@zip.com.au>.
Linux-PAM Manual 06/04/2011 PAM_FAILDELAY(8)