The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Log monitor script er_ashu UNIX for Dummies Questions & Answers 2 12-30-2008 03:10 PM
If File has been updated, do something?? cbo0485 Shell Programming and Scripting 5 11-07-2008 10:52 AM
Log file not getting updated KornFire High Level Programming 4 10-21-2008 04:12 AM
Find last updated file callimaco0082 UNIX for Dummies Questions & Answers 4 09-04-2008 11:17 AM
Creating an updated file dbfree Shell Programming and Scripting 4 09-30-2005 04:23 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-19-2009
elmesy elmesy is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 11
Aix script to monitor when a file has been updated

Hi

Im looking to create a Aix script to monitor a file for once it's been updated and then send an email. I dont have great scripting knowledge and have only come up with the following so far

while true
do
find /home/test/AMQ* -mmin 1 > /home/test/scripts/output/MQERRORS
exec /home/test/scripts/test
sleep 20
done

So from the above i can get the monitoring part done and am dealing with the email part in the script in the while loop in bold which i cant get to execute. Can you not execute a script in a while loop?

There is probably an easier way to do it, so some help would be much appreciated.

Thanks,

Matt.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0