Hi all,
I'm after some help here!
I need to be able to monitor a given file at regular intervals, and if a given value is present, to run a command (basically I need to monitor a file 'output.txt' and if the value is present, run a command to trigger a pager message - I know the command for that!)
I'm assuming I could use a cron job to do this, but i'm struggling to work out how to do it.
Any help would be appreciated!
Thanks,
J
I'm after some help here!
I need to be able to monitor a given file at regular intervals, and if a given value is present, to run a command (basically I need to monitor a file 'output.txt' and if the value is present, run a command to trigger a pager message - I know the command for that!)
I'm assuming I could use a cron job to do this, but i'm struggling to work out how to do it.
Any help would be appreciated!
Thanks,
J
Statistics: Posted by G0FHM — Fri Dec 20, 2024 10:47 am — Replies 4 — Views 52