Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to know when a new file is created? Post 302210982 by aixjadoo on Wednesday 2nd of July 2008 11:05:12 AM
Old 07-02-2008
How to know when a new file is created?

Hi All,


How to we get to know when say a new log file is created on an Unix box.
I need to trigger a process(say a script) when the new log file is created.

But i need to know by some means or generate a trigger when a new file is created????

Something like when we receive a new mail we get an alert ..can we know when a new log is generated in the system


Any Ideas..

Thanks!!!

Last edited by aixjadoo; 07-02-2008 at 12:42 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File created time

I have lot .log files in a directory.I need to take the one got created today.Is there any way to get the time of creation of a file? (6 Replies)
Discussion started by: yakyaj
6 Replies

2. Shell Programming and Scripting

How to empty a file(already created)

What is the command to empty an already existing file. please provide me.i used Touch cmd to empty the file.but it changing the time only. (4 Replies)
Discussion started by: laknar
4 Replies

3. Shell Programming and Scripting

File created year

Hi I need to get the File creation date (MM,DD,YYYY) using ls -ltr am getting only Month and Day only, I need year also when the file is modified. Thanks (3 Replies)
Discussion started by: KiranKumarKarre
3 Replies

4. Homework & Coursework Questions

how to delete core file (file created due to apps crashed)

1. The problem statement, all variables and given/known data: When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies

5. UNIX for Advanced & Expert Users

Which process has created a file ?

Hi All, We have a multi-threaded application. During the course of action, each process creates some files. Is there any way to know which process has created a particular file ? Ex: Suppose we have 3 process running A, B and C in the application and some files FILE1 FILE2 FILE3 and... (4 Replies)
Discussion started by: 14341
4 Replies

6. UNIX for Dummies Questions & Answers

Who created a file?

Hi!Can somebody tell me what command can I use to find who created a file,please? (6 Replies)
Discussion started by: teotrask
6 Replies

7. UNIX for Dummies Questions & Answers

How to find out when a file was created?

Hi All I use solaris 9 and just realised my opt volume has grown to 99%. How can I find out which file was created on the opt volume for it to have grown to 99%? Which command should I use since I can't go through each individual file to look at the date the files were created. Regard (3 Replies)
Discussion started by: rahmantanko
3 Replies

8. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

9. Shell Programming and Scripting

File not getting created

hi, i have a script wrriten where there is a temporary files getting created: echo "From:" ${usrname}@apps.mc.xerox.com>mail_txt it was working from a long time but now there is a error creating while creating this temporary file. here is the error log for this:... (15 Replies)
Discussion started by: lovelysethii
15 Replies

10. How to Post in the The UNIX and Linux Forums

How to get the created file to be outputed?

Hi , I am trying to get the log of Datastage job and email it to the user with the log as an attachment and body in the email.every time i run the script one email is sent to the specified user id as expected.and meanwhile an .txt file is created in the path where sript is placed with the same... (2 Replies)
Discussion started by: sangeethamyra
2 Replies
strerr(1M)																strerr(1M)

NAME
strerr - receive error messages from the STREAMS log driver SYNOPSIS
sys_admin_mail_name] logdir] DESCRIPTION
receives error messages from the STREAMS log driver (strlog(7)) for addition to the STREAMS error log files mm-dd) in the STREAMS error logger directory by default). When first called, creates the log file This is a daily log file, where mm indicates the month and dd indi- cates the day of the logged messages. then appends error messages to the log file as they are received from the STREAMS log driver. STREAMS error log messages have the following format: seq time tick pri ind mod sub text Components are interpreted as follows: seq Error event sequence number. time Time the message was sent expressed in hh:mm:ss. tick Time the message was sent expressed in machine ticks since the last boot. pri Error priority level as defined by the STREAMS driver or module that originates the messages. ind Can be any combination of the following three message indicators: The message has also been saved in the trace log. The message signaled a fatal error. The message has also been mailed to the system administrator. mod Module identification number of the error message source. sub Subidentification number of the error message source. text Error message text. runs continuously until terminated by the user. Options recognizes the following options and command-line arguments: Specify the user's mail name for sending mail messages. Mail is sent to the system administrator by default. Specify the directory to contain the error log file. Default is WARNINGS
Only one process can open the STREAMS log driver at a time. This restriction is intended to maximize performance. The STREAMS error logging mechanism works best when it is not overused. can degrade STREAMS performance by affecting the response, throughput, and other behaviors of the drivers and modules that invoke it. also fails to capture messages if drivers and modules generate messages at a higher rate than its optimum read rate. If there are missing sequence numbers among the messages in a log file, messages have been lost. FILES
NLS catalog for error log file or files on which operates SEE ALSO
strace(1M), strlog(7). strerr(1M)
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy