Hi Andrew,

There might be a better solution to this but I just thought one way would
be to intiate a script via scan completion command that would check
robinhood process in a while loop with a time interval and then once the
robinhood process is done (after purging; something like ps -ef | grep -i
robinhood) you can ask it to grep the log files for what you wanted via
your external script.

Sreedhar
--
Sent from cell. Excuse my brevity & typos.
On May 8, 2015 9:16 PM, "Andrew Elwell" <[email protected]> wrote:

> Hi All,
>
> Is there a simple way to call an external script at the end of a purge run?
>
> My use case is as follows:
>
> we have /scratch/projectNN/userid/ directories, and at the end of a
> purge run I want to create a /scratch/projectNN/purgelog-YYYY-DD-MM
> file with just the files removed for projectNN (rather than the whole
> robinhood_purge.log - I was just going to grep out the relevant
> entries)
>
> Although I can simply put the robinhood_purge.log under logrotate
> control, and call something with postrotate, there's a risk that if
> the logrotate happens mid-purge some of the entries won't be reported
> till the next logrotate run.
>
> Similarly I could run "robinhood --purge --once ; parselog.pl" from
> cron, but then I need to worry about locking incase two purge
> processes run at once.
>
> Anyone have other ideas or examples?
>
>
> Andrew
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> robinhood-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/robinhood-support
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

Reply via email to