Results 1 to 2 of 2

Thread: Generate and alert if file has not been updated.

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Generate and alert if file has not been updated.

    hello,

    i need a script to generate an alert when for example a file is not update on or before for example 25th of each month and am gona use crontab to run it periodically.

    your help is appreciated.

    thanx

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    367
    Thanks
    0
    Thanked 55 Times in 51 Posts
    Rep Power
    7

    Default

    hi,

    bash has an -N option for test builtin, to tell if a file has been modified.
    see help test
    «A problem clearly stated is a problem half solved.»

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. script to generate email alert
    By asim.mcp in forum Shell scripting
    Replies: 6
    Last Post: 11th February 2011, 03:23 AM
  2. Replies: 4
    Last Post: 6th November 2010, 08:23 AM
  3. Replies: 6
    Last Post: 10th February 2010, 12:17 PM
  4. how to install oracle 9.2.0 on RHEL 4 updated 2
    By dhar_kr in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 27th July 2009, 08:02 AM
  5. user name not updated in /etc/group file
    By chandregowda in forum HP-UX
    Replies: 1
    Last Post: 31st August 2008, 05:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41