Hi Experts,
Im a new bee for scripting,
I would ned to do the following via linux shell scripting, I have an application which throws a log file, on each action of a particular work with the application, as sson as the action is done, the log file would vanish or stops updating there, the action apparently invokes another application related.
So now my task would be to see the logfile that is generated each time.
please chk this
My script would have to regularly check the following directory (which will vary with the system name)
/usr/fl/log/*-fsm-server-*/
for a file called
console.txt
That file only exists for as long as the process is running (so your
script will have to poll that directory regularly). It contains
pathnames to the footage being copied.
here the * represents the numbers on each instance,
So i need to poll this directory and check for the latest log file, and grep the essential info............
How im not confusing...............if possible help me out............i shall explain better if needed.