On Mar 21, 7:15 pm, Christian Benke <[email protected]> wrote:
> Hu? What's your idea about?
>
> The sync will be started by user-input. It's a local webinterface used
> for publishing to a public website - when a internet connection is
> available...

You can "bootstrap" pyramid onto the command line (
http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/commandline.html
)

It's a lifesaver for building maintenance scripts -- you have full
access to your pyramid environment, or can just write whatever you
need in some customized script-only logic.

you could easily use a commandline script to wrap all the rsync stuff
(via popen or whatever), then do all the post-processing ( you'd have
access to your helpers and models ).  if you're doing periodic syncs,
run it through a crontab.  if you're doing a web based trigger... you
could have it trigger a new subprocess ( though i'd probably `touch`
and `rm` a file to use as a semaphore to know if the process is
already running )

does that make sense ?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to