4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Here are my requirements.
I want to monitor a directory and retrieve file properties like file names along with file sizes of files being generated today and that exceeds a threshold limit (say 10MB) using a shell script.
Basically this shell script should monitor (kinda... (1 Reply)
Discussion started by: RamanM
2. Shell Programming and Scripting
I have a primary server where certain files are created real time. These files have varying file sizes. I want to FTP or copy them over to a different server server as soon a file gets created. I have to ensure that only full file is copied. The receiving end process expects a FULL file. I am ok... (3 Replies)
Discussion started by: vskr72
I have Sun storage 3310 and i have installed CAM to make real time monitor, but unfortunately CAM not supported to 3000 model.
is there is any application like CAM and support to 3310 model i can use.. please ur advice??
Ahmad (2 Replies)
Discussion started by: ahmad_wa
4. Shell Programming and Scripting
I have two log files which keeps appending every sec...I want to extract a certain field from each file(using awk for extracting the data) and compare them in real time...
i need a log3 which keeps appending the data found in log1 and... (7 Replies)
Discussion started by: wannalearn
LEARN ABOUT OSF1
sem_close(3) Library Functions Manual sem_close(3)
sem_close - Deallocates the specified named semaphore (P1003.1b)
Realtime Library (librt.so, librt.a)
int sem_close (
sem_t *sem) ;
sem References the semaphore to be closed. Use the sem argument returned by the previous call to sem_open.
The sem_close function makes a semaphore available for reuse by deallocating any system resources allocated for use by the current process
for the named semaphore indicated by sem.
If the semaphore has not been removed with a call to sem_unlink, sem_close does not change the current state of the semaphore.
If the semaphore has been removed with a call to sem_unlink after the most recent call to sem_open with O_CREAT, the semaphore is no longer
available after all processes that opened the semaphore close it.
On a successful call, a value of 0 (zero) is returned. Otherwise, a value of -1 is returned and errno is set to indicate that an error
The sem_close function fails under the following condition:
[EINVAL] The sem argument is not a valid semaphore descriptor.
Functions: sem_init(3), sem_open(3), sem_unlink(3)
Guide to Realtime Programming delim off