10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have a log file which contains lines like below:
2010-07-19 07:13:19,021 ERROR system ...(text)
2010-07-19 07:22:03,427 ERROR system ...(text)
class com... (text)
2010-07-19 07:23:19,026 ERROR system ...(text)
class com... (text)
each line is a separate line... I am given the a... (11 Replies)
Discussion started by: a27wang
11 Replies
2. Post Here to Contact Site Administrators and Moderators
I would like to propose to change the display of dates in the postings, which is currently mm-dd-yy. To avoid ambiguity, I would like to propose dd-Mmm-yyyy. Thank you for your anticipated consideration. (5 Replies)
Discussion started by: figaro
5 Replies
3. Post Here to Contact Site Administrators and Moderators
My post count is probably inflated by something like 20% over the last few days, because the site often posts my reply twice when the load is high. Is there something I can do to avoid this? Is there something I should be doing to notify site administrators about the duplicates? I could click on... (9 Replies)
Discussion started by: era
9 Replies
4. UNIX for Advanced & Expert Users
Hi,
We are using RSYNC for syncing remote directories and working great. Our requirement is to have the destination files with date/time stamp of when they're copied on to the destination server, NOT the date/time stamps of source files/directories.
As RSYNC, by default, preserving the same... (4 Replies)
Discussion started by: prvnrk
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I need to zip the list of files using from date Stamp to end date Stamp, How can I filter and make FromDate_EndDate.gzip?
any idea? (1 Reply)
Discussion started by: redlotus72
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
Wondering if there is have a date added at the end of a test string. I have a hypothetical text file day one:
John
Paul
George
When the file day one is output, I'd like it to read something like this:
John 101406
Paul 101406
George 101406
Day two, when the same text file... (0 Replies)
Discussion started by: JimmyFlip
0 Replies
7. Shell Programming and Scripting
Dear Gurus,
I'm trying to move a number of files from one directory to another directory with a new date stamp. This is my script:
#! /bin/csh
Today_Date=`date +%Y%M%D`
mv /usr/TRS/data/TS* /usr/TRS/backup/TS*.${Today_Date}
when i run the script i'm getting the following errors:
mv:... (14 Replies)
Discussion started by: lweegp
14 Replies
8. Shell Programming and Scripting
I need to move files after midnight but attach the previous date to it.
Moving files before midnight no proproblem but how can I move files which are created on the 22nd for example but add a date stamp of previous day?
Date ='date +"Y%m%d"' gets today's date but how can I get yesterday's... (3 Replies)
Discussion started by: candle_66
3 Replies
9. Shell Programming and Scripting
I'm trying to write a script that checks the DTS of a file the compares it to the current time. If greater that 60 mins has gone by and the file has not been written to alert.
So far I have the time pulled from the file but I dont know how to compare the times against a 60 min difference.
... (2 Replies)
Discussion started by: jarich
2 Replies
10. UNIX for Dummies Questions & Answers
I have to capture the creation date and time stamp for a file. The ls command doesn't list all the required information. I need year, month, day, hour, minute and second.
Any ideas... (1 Reply)
Discussion started by: Xenon
1 Replies
thr_join(3C) Standard C Library Functions thr_join(3C)
NAME
thr_join - wait for thread termination
SYNOPSIS
cc -mt [ flag... ] file...[ library... ]
#include <thread.h>
int thr_join(thread_t thread, thread_t *departed, void **status);
DESCRIPTION
The thr_join() function suspends processing of the calling thread until the target thread completes. The thread argument must be a member
of the current process and cannot be a detached thread. See thr_create(3C).
If two or more threads wait for the same thread to complete, all will suspend processing until the thread has terminated, and then one
thread will return successfully and the others will return with an error of ESRCH. The thr_join() function will not block processing of the
calling thread if the target thread has already terminated.
If a thr_join() call returns successfully with a non-null status argument, the value passed to thr_exit(3C) by the terminating thread will
be placed in the location referenced by status.
If the target thread ID is 0, thr_join() finds and returns the status of a terminated undetached thread in the process. If no such thread
exists, it suspends processing of the calling thread until a thread for which no other thread is waiting enters that state, at which time
it returns successfully, or until all other threads in the process are either daemon threads or threads waiting in thr_join(), in which
case it returns EDEADLK. See NOTES.
If departed is not NULL, it points to a location that is set to the ID of the terminated thread if thr_join() returns successfully.
RETURN VALUES
If successful, thr_join() returns 0. Otherwise, an error number is returned to indicate the error.
ERRORS
EDEADLK A joining deadlock would occur, such as when a thread attempts to wait for itself, or the calling thread is waiting for any
thread to exit and only daemon threads or waiting threads exist in the process.
ESRCH No undetached thread could be found corresponding to the given thread ID.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
thr_create(3C), thr_exit(3C), wait(3C), attributes(5), standards(5)
NOTES
Using thr_join(3C) in the following syntax,
while (thr_join(0, NULL, NULL) == 0);
will wait for the termination of all non-daemon threads, excluding threads that are themselves waiting in thr_join().
SunOS 5.10 27 Mar 2000 thr_join(3C)