The unix sleep command
sleeps for whole seconds. The code you gave sleeps for 150 millseconds. It actually takes longer than 150 milliseconds because the shell has to create a process and load perl into it, then "sleep" for 150 ms.
Specifically what is the purpose of sed?
What is f?
Why is the 'cp f $phonefile' line needed when the script ‘goes live'?
Why might that two commands following sed be commented out at the present time ( i.e., during development)?
Thanks in... (2 Replies)
I am using this line of perl code to change the file format and remove ^M at the end of each line in files:
perl -i -pe's/\r$//;' <name of file here>
Can you explain to me what this code does, and translate it into bash/awk/sed? (2 Replies)
Hi,
I saw this. But I don't know why we need this?
ls mydir > foo.txt ## I know what this will do, it will take the results and write to the file called foo.txt
ls mydir > foo.txt 2>&1 ## Don't know why we need 2>&1
Thanks. (2 Replies)
Please explain grep -A 999999. I've seen this before, it always seems to be with six 9's as well. See an example below.
grep 'regexp' -A 999999 server.log | egrep -c 'Option=\' (6 Replies)
su - keibatch -c ""date ; /usr/local/kei/batch/apb/bin/JKEIKYK4140.sh -run "&$C$6&" WSUKE100201""
Not clear about : date ; /usr/local/kei/batch/apb/bin/JKEIKYK4140.sh -run "&$C$6&" WSUKE100201
Please help (2 Replies)
Hi Forum.
I have the following script /home/user/EDW_ENV.sh to setup some environment variables as:
##### section 1 PM_HOME #####
export PC_DIR_BASE=/data/informatica/ming
export DIR_ORACLE=/data/sw/apps/oracle/Oracle_scripts
export... (4 Replies)
I have a requirement to remove all non-ascii characters from a fixed length file. I used the below command which is removing special characters but somehow the total record length is being truncated to one space less. If it is a multi-byte string then many characters at the end are being truncated.... (8 Replies)
Discussion started by: eskay
8 Replies
LEARN ABOUT DEBIAN
buf_timelock
BUF_TIMELOCK(9) BSD Kernel Developer's Manual BUF_TIMELOCK(9)NAME
BUF_TIMELOCK -- locks a buffer
SYNOPSIS
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/uio.h>
#include <sys/bio.h>
#include <sys/buf.h>
int
BUF_TIMELOCK(struct buf *bp, int locktype, char *wmesg, int catch, int timo);
DESCRIPTION
The BUF_TIMELOCK() function locks the given buffer, and limits the amount of time it will sleep to timo and OR's catch into the sleep's pri-
ority. wmesg is the wmesg used in the sleep.
Its arguments are:
bp The buffer to lock.
locktype Flags controlling the type of lock. See lockmgr(9) for details.
wmesg The wmesg used in any sleeps while acquiring the lock.
catch Priority OR'd into the sleep's priority.
timo The timeout for any sleeps encountered during the lock.
RETURN VALUES
A value of 0 is returned on success. See lockmgr(9) for details on non-zero return values.
SEE ALSO buf(9), BUF_LOCK(9), BUF_UNLOCK(9), lockmgr(9)AUTHORS
This manual page was written by Chad David <davidc@acns.ab.ca>.
BSD July 9, 2001 BSD