06-20-2005
Sorry, in my previous post I did not mention that youhave to read without waiting for the opertion to complete.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
How do I get the number of seconds since 1970, within a script, for the previous day at 23:59? I need this value to pass into a sql statement to cleanup records older than the previous day at midnight. It will be automated via cron so no hard coding allowed.
Thanks! (2 Replies)
Discussion started by: captainzeb
2 Replies
2. UNIX for Dummies Questions & Answers
Any sleek way to convert seconds to hh:mm:ss format .
I know it can be done by mod and divide . Looking for a one liner if possible .
Example
3600 seconds = 01:00:00
3601 seconds = 01:00:01 (2 Replies)
Discussion started by: akrathi
2 Replies
3. UNIX for Advanced & Expert Users
It is required to calculate time difference in seconds between epoch time (19700101 00:00:00) and any given date time (e.g. 20010214 14:30:30).
Is there any command in unix to get it? Thanks in adv. (1 Reply)
Discussion started by: k_bijitesh
1 Replies
4. HP-UX
Hello all,
Is there any thumb rule or aproximation of the equivalence in second of one tick?
Thank you in advance. (1 Reply)
Discussion started by: mig28mx
1 Replies
5. Shell Programming and Scripting
Hi All
I need to convert a number of fields in a record from seconds to hh:mm:ss ( or possibly hhh:mm:ss ). I'm guessing awk is the way to go .
File has multiple records and each record contains 101 fields - can awk handle that ? The seconds values will be in fields 3 - 101 and could be 0.
... (4 Replies)
Discussion started by: Mudshark
4 Replies
6. Shell Programming and Scripting
Hi,
In my shell script, (as per the requirement), I am creating few files, and the processes are launched parallelly . (by using "&" at the end of the command line). As per the logic, I need to remove these files as well, after creating.
But, the problem is, due to parallel processing,... (3 Replies)
Discussion started by: jitendriya.dash
3 Replies
7. UNIX for Dummies Questions & Answers
Is there a function call in std library or unit command that returns the number of current leap seconds?
GG (4 Replies)
Discussion started by: NAVTime
4 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to find processing time of my script. Please can someone give me the commands to get the start/end time in "dd-mm-yyyy hh:mm:ss" and the differnce in seconds.
Thanks! (5 Replies)
Discussion started by: dvah
5 Replies
9. UNIX for Dummies Questions & Answers
I have file with below data
00:00:00
00:00:00
00:00:00
00:00:01
00:00:01
00:00:01
00:00:01
00:00:01
00:02:01
00:02:01
00:02:01
so on till
23:59:59
I want count of seconds for each hour and minutes
say for 00:00:00 its 3 and 00:00:01 its 5 and 00:02:01 its 3 and so on... (8 Replies)
Discussion started by: mirwasim
8 Replies
LEARN ABOUT OSF1
tis_write_unlock
tis_write_unlock(3) Library Functions Manual tis_write_unlock(3)
NAME
tis_write_unlock - Unlocks the specified read-write lock that was acquired for write access.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <tis.h>
int tis_write_unlock(
tis_rwlock_t *lock);
STANDARDS
None
PARAMETERS
Address of the read-write lock to be unlocked.
DESCRIPTION
This routine unlocks a read-write lock that was acquired for write access.
Upon completion of this routine, any thread waiting to acquire the lock for read access will have those acquisitions granted. If no
threads are waiting to acquire the lock for read access, then a thread waiting to acquire it for write access will have that acquisition
granted.
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The value specified by *lock is invalid.
ERRORS
None
RELATED INFORMATION
Functions: tis_read_lock(3), tis_read_trylock(3), tis_read_unlock(3), tis_rwlock_init(3), tis_rwlock_destroy(3), tis_write_lock(3),
tis_write_trylock(3)
Manuals: Guide to DECthreads and Programmer's Guide delim off
tis_write_unlock(3)