I am trying to monitor a log file and kick of a script when a change occurs. I know I could do this with a cron job and check for differences at set intervals, but I need the script to be dynamic and notify me as soon as there is a change in the log file. If anyone knows of a way to do this please... (1 Reply)
Dear All
I had made 2 folder name folder a and b.
In folder a i am receiving some file from another server. And this file are moved to folder b using one script twice a hour.
Is there any commnad or utility in unix so that i cam monitor folder a file ..mena how many file i had received in... (1 Reply)
Hi Friends,
I am trying to write a script which continiously monitor one specific error message from a log file. This script should continiously monitor the file for the error and send out the email when detect the error message. I tried the below command but fails. Please help me.
tail -f... (4 Replies)
Hi,
I need to amend an existing ksh script so that it runs a process (stop weblogic) and in parallel needs to monitor a log file (startup.log) in the background for a certain string (e.g. unable to stop weblogic). If the string appears in the log i need to kill the stop weblogic process.
... (5 Replies)
Hi
I am looking for a help in designing a bash script on linux which can do below:-
1) Look in a specific directory for any new files
2) Mail the content of the new file
Appreciate any help
Regards
Neha (5 Replies)
whats is the best way to monitor file if it has not updated in last 24 hours.
example /var/logmessages in linux , /var/adm/messaged in solaris and alert to email .
find with mtime , perl file stat, anyone have any script examples of something better ? (3 Replies)
Sorry if this is the wrong forum
Searching for Saas Monitor service which monitor my servers which are sitting in different providers .
This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard.
The info I need is CPU / RAM / my servers status (... (1 Reply)
I'm curious to know how do I add an empty log file (test1.log) to an existing text file to monitor all the changes made to a.txt.
Is this expression
export PATH=$PATH:/home/test1.log
right to be added to the text file a.txt? (5 Replies)
Discussion started by: TestKing
5 Replies
LEARN ABOUT HPUX
newmail
newmail(1) General Commands Manual newmail(1)NAME
newmail - notify users of new mail in mailboxes
SYNOPSIS
interval] [file-spec]...
DESCRIPTION
The utility monitors your incoming mailbox or specified mail folders.
The basic operation is that the program checks the folders each interval seconds (default 60) and lists any new mail that has arrived in
any of the mailboxes, indicating the sender's name, and the subject of the message.
Without any options, runs in the background at a default interval of 60 seconds to monitor the user's incoming mailbox. So that they are
suitable for display on an already active screen, messages are prefixed with a pair of pointer characters as follows:
If there is no subject, the message is displayed. If there is more than one folder, output lines are prefixed by the folder-name or the
prefix string specified by file-spec.
runs until you log out or explicitly kill it. It can internally reset itself if the mailbox shrinks in size and then grows again.
Options
recognizes the following options:
Set the time interval between mailbox checks
to the value specified, in seconds. The default is 60.
interval must be less than 2^32 seconds. If it is set to less than 10 seconds, warns that such short intervals are
not recommended.
Run the program within the current window in the foreground
with a more succinct output format.
The output formats become:
Operands
recognizes the following operand:
file-spec Specifies the name of a folder and an optional prefix string, in the form:
Metacharacters such as and indicate the folder directory. The default is the value of the environment variable or
EXAMPLES
Check incoming mailbox every 60 seconds:
Check incoming mailboxes of and every 15 seconds for new messages.
Monitor the incoming mailbox of user and the folder in your mail directory called Prefix all new messages in the incoming mailbox of with
the string and the new messages in the folder with Also, monitor folder
AUTHOR
was developed by HP.
newmail(1)