Sponsored Content
Full Discussion: activity on a file
Top Forums Shell Programming and Scripting activity on a file Post 302084721 by Terrible on Sunday 13th of August 2006 12:46:53 AM
Old 08-13-2006
activity on a file

is there anyway to tell when an activity is happening on a file.

i'm talking about something deeper than what ls -l can give.

when i say activity, i want to know exactly when any commands was run on a specific file. i.e, did anyone run the mail command on this file. did anyone cat this file. did anyone, cp this file anywhere. is this possible in unix?
Terrible
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies

2. Linux

Recording X or VNC Activity to a Video File?

I have the need to record some step by step instructions to help with instruction in using Fedora Core 3. I was wondering if there are any ways to capture X or VNC activity to a video file. It can be any of the most common formats (MPEG, DiVX/ViDX, Ogg Theora, etc...) Does anyone know of any apps... (3 Replies)
Discussion started by: deckard
3 Replies

3. UNIX for Dummies Questions & Answers

Logging all console activity to a file - how?

Hi all, Well I've had a bit more experience with Unix-like environments since my last post, now that I have started working on my website in earnest and am doing much of the file manipulation via the command line through SSH. The thing is, I want to be able to log all console activity,... (4 Replies)
Discussion started by: patwa
4 Replies

4. UNIX for Dummies Questions & Answers

CPU Activity

One of my user always complains about the load on the server, he works in a different location & time zone. Is it possible to check the CPU activity during specific time/days? let us say for example, i want to check the load on the server at 9 pm to 10 PM on August 22th ? Not the current load.... (2 Replies)
Discussion started by: sydney2008
2 Replies

5. AIX

System activity

Hi, I want to find program's file read,write for a particular time.For example i am executing an application called test1, this will get input from some parameter files(file1,file2,file3) and it will write to some files(file4,file5), so i want to execute one program which will capture these... (3 Replies)
Discussion started by: gnanadurai_it
3 Replies

6. Shell Programming and Scripting

Notification Activity

Actually i am working on datastage and my operating system is Unix So I want a script in UNIX env for intimating the datastage log at the time of job abort. Can you please help me out .. Thanks in advance... (2 Replies)
Discussion started by: victory
2 Replies
EvmConnCheck(3) 					     Library Functions Manual						   EvmConnCheck(3)

NAME
EvmConnCheck(), EvmConnWait(), EvmConnDispatch(), EvmConnFlush() - maintain connection with the EVM daemon SYNOPSIS
Library EVM Support Library Parameters connection The EVM connection that is to be monitored. See the EvmConnCreate(3) manpage. IOWaiting This is the return operand. Possible values for this operand are the following: There is no outstanding I/O activity on the connection. There is outstanding I/O activity on the connection. The client needs to call to handle the outstanding activity. timeout If the timeout value is NULL, it specifies that is to wait until there is activity on the connection. If the timeout value is not NULL, it specifies the amount of time that waits for activity on the connection. count Receives a count of messages queued for sending to the EVM daemon. DESCRIPTION
The routine checks whether there is any I/O activity outstanding on the connection. If there is activity, IOWaiting is set to The program is to then call to handle it. If there is no outstanding I/O activity, IOWaiting is set to An response from this function does not guaran- tee that an event has arrived. An response simply means that there is a message on the connection that needs to be handled. The routine blocks until activity is detected on the connection. If timeout is not NULL, it specifies the amount of time that the function waits for activity on the connection before returning with a status of The routine handles one incoming I/O message on the connection, calling the client's callback function as needed. If there is no message awaiting processing, the function returns immediately. Calling this function is not guaranteed to invoke the connection's callback func- tion. If the callback is invoked, it is not necessarily true that an event has arrived. The routine attempts to send to the EVM daemon any messages that are queued for output as a result of earlier calls on a connection that is marked as a non-blocking connection. The routine continues to send messages from the queue, until either all messages have been sent or until the send buffer is full. On return, if the count output parameter is a number greater than zero, then that number is the number of messages still queued for sending. returns See EvmConnControl(3) for more information. RETURN VALUE
The operation completed without error. One of the arguments to the function is invalid. A value in a structure member is invalid. An operation failed because an attempt to acquire heap memory failed. A read error occurred while reading from the EVM daemon connection. A write error occurred while writing to the EVM daemon connection. An error occurred on the EVM connection. Invoke to destroy the connection. A timeout period expired. The current operation was interrupted by receipt of a signal. One or more messages is queued for sending to the EVM daemon. ERRORS
The value of is not set. FILES
Default pathname for the domain socket. SEE ALSO
Functions connect(2), select(2), socket(2). Routines EvmConnControl(3), EvmConnCreate(3), EvmConnDestroy(3), EvmEventPost(3). Event Management EVM(5). Event Callback EvmCallback(5). Event Connection EvmConnection(5). EVM Events EvmEvent(5). EvmConnCheck(3)
All times are GMT -4. The time now is 10:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy