[kwlug-disc] if {other command done} then...

Raul Suarez rarsa at yahoo.com
Thu Jul 8 16:01:01 EDT 2010


Actually the inotify-tools web page has an example very similar to what you want to do.

http://wiki.github.com/rvoicilas/inotify-tools/#info

Raul Suarez

Technology consultant
Software, Hardware and Practices
_________________
Twitter: rarsamx
http://rarsa.blogspot.com/ 
An eclectic collection of random thoughts


--- On Thu, 7/8/10, Johnny Ferguson <hyperflexed at gmail.com> wrote:

> From: Johnny Ferguson <hyperflexed at gmail.com>
> Subject: Re: [kwlug-disc] if {other command done} then...
> To: kwlug-disc at kwlug.org
> Received: Thursday, July 8, 2010, 2:43 PM
> This looks awesome Raul. I have to
> frequently rsync certain application 
> data between my two machines, and with something like this
> I could only 
> fire syncing when the important files change.
> 
> Great find.
> 
> Do you know if there's a tool already written with this
> that would watch 
> a list of files and execute a command when a given
> notification was 
> received? It wouldn't be too hard to whip something up, but
> I'm sure it 
> already exists.
> 
> -Johnny
> 
> On 07/08/2010 11:29 AM, Raul Suarez wrote:
> > At work we use a batch control application but
> sometimes, when we need to go across platforms (or business
> partners) we rely on trigger files.
> >
> > We would have a watcher job that triggers the next
> steps as soon as the file is received.
> >
> > It is a fairly simple and fail proof method. Under
> Linux you can use inotify
> >
> > http://www.linuxjournal.com/article/8478
> >
> > Raul Suarez
> >
> > Technology consultant
> > Software, Hardware and Practices
> > _________________
> > Twitter: rarsamx
> > http://rarsa.blogspot.com/
> > An eclectic collection of random thoughts
> >
> >
> > --- On Thu, 7/8/10, Insurance Squared Inc.<gcooke at insurancesquared.com> wrote:
> >
> >> From: Insurance Squared Inc.<gcooke at insurancesquared.com>
> >> Subject: [kwlug-disc] if {other command done}
> then...
> >> To: "KWLUG discussion"<kwlug-disc at kwlug.org>
> >> Received: Thursday, July 8, 2010, 11:00 AM
> >> I push my webserver and desktops each
> >> night over to a backup server using rsync by
> running a
> >> script on the desktops/webserver.  I've got
> that set
> >> for 1am.
> >> Then at about 3 am on the backup server I run a
> script that
> >> compresses the backups and dates it.
> >>
> >> Is there an easy way to ensure the script on the
> backup
> >> server doesn't start running until the backups
> are
> >> done?  Or would I be better forcing the
> compression and
> >> dating right from the desktop script?
> >>
> >> g.
> >>
> >>
> >> _______________________________________________
> >> kwlug-disc_kwlug.org mailing list
> >> kwlug-disc_kwlug.org at kwlug.org
> >> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
> >>
> >
> >
> >
> > _______________________________________________
> > kwlug-disc_kwlug.org mailing list
> > kwlug-disc_kwlug.org at kwlug.org
> > http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
> 
> 
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
> 






More information about the kwlug-disc mailing list