Is there a way to copy a folder on zope, nightly through a cron job and then rename it? I would think I could call lynx or wget from cron with a zope url but I don't know how I would go about doing it. Example of what I want to do: I have a folder in the root of zope called py_scripts I want to copy. Then I want to rename the copied folder py_scripts with today's date on the end of it. I would like cron to do this nightly for me. Any ideas? Thanks, Greg
--On 27. Juli 2006 11:02:11 -0500 vl <bbmail@vltool.com> wrote:
Is there a way to copy a folder on zope, nightly through a cron job and then rename it? I would think I could call lynx or wget from cron with a zope url but I don't know how I would go about doing it.
Write a PythonScript that use the CopySupport API (manage_copyObjects/manage_pasteObjects) and call this script through your favorite URL fetcher (triggered through cron). -aj E-Publishing, Python, Zope & Plone development, Consulting
Andreas Jung wrote:
--On 27. Juli 2006 11:02:11 -0500 vl <bbmail@vltool.com> wrote:
Is there a way to copy a folder on zope, nightly through a cron job and then rename it? I would think I could call lynx or wget from cron with a zope url but I don't know how I would go about doing it.
Write a PythonScript that use the CopySupport API (manage_copyObjects/manage_pasteObjects) and call this script through your favorite URL fetcher (triggered through cron).
-aj E-Publishing, Python, Zope & Plone development, Consulting
Yes, that would work. Thanks. I should of thought of that.
Dnia czwartek, 27 lipca 2006 18:11, vl napisał:
Andreas Jung wrote:
Write a PythonScript that use the CopySupport API (manage_copyObjects/manage_pasteObjects) and call this script through your favorite URL fetcher (triggered through cron).
Yes, that would work. Thanks. I should of thought of that. If cron is not a must then take a look at ZopeScheduler product - you will get rid of URL fetcher stuff.
-- eXt
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27 Jul 2006, at 13:54, eXt wrote:
Dnia czwartek, 27 lipca 2006 18:11, vl napisał:
Andreas Jung wrote:
Write a PythonScript that use the CopySupport API (manage_copyObjects/manage_pasteObjects) and call this script through your favorite URL fetcher (triggered through cron).
Yes, that would work. Thanks. I should of thought of that. If cron is not a must then take a look at ZopeScheduler product - you will get rid of URL fetcher stuff.
Using cron has nothing to do with the methodology for executing the script, it doesn't imply URL-whacking is used. A good way to run tasks out of cron if you are using ZEO is either a script that is executed by "zopectl run" or use someting like this: http://www.simplistix.co.uk/software/zope/stepper jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEyQRaRAx5nvEhZLIRAkPdAKCt9amuZAlYCs+NudfZ9Arsn9lmHgCdGy8R oD34Z2Jz0P7RznEsrBqBpe0= =m7FZ -----END PGP SIGNATURE-----
participants (4)
-
Andreas Jung -
eXt -
Jens Vagelpohl -
vl