Well, here's one config that should work. I'll guess that you have the same cleanup_datasets/ folder contents as I do so... having logged in as user that galaxy runs under, doing a
crontab -e on command line should get you crontab settings for that user. I have an older longer line that handles daily cleanup... 0 0 * * * sh /[path to your galaxy]/galaxy-dist/scripts/cleanup_datasets/delete_userless_histories.sh; sh /usr/local/galaxy/production2/galaxy-dist/scripts/cleanup_datasets/purge_histories.sh; sh /usr/local/galaxy/production2/galaxy-dist/scripts/cleanup_datasets/purge_libraries.sh; sh /usr/local/galaxy/production2/galaxy-dist/scripts/cleanup_datasets/purge_folders.sh; sh /usr/local/galaxy/production2/galaxy-dist/scripts/cleanup_datasets/delete_datasets.sh; sh /usr/local/galaxy/production2/galaxy-dist/scripts/cleanup_datasets/purge_datasets.sh or a more abbreviated version: @daily cd /[path to another galaxy instance]/galaxy-dist/scripts/cleanup_datasets && sh delete_userless_histories.sh && sh purge_histories.sh && sh purge_libraries.sh && sh purge_folders.sh && sh delete_datasets.sh && sh purge_datasets.sh Hopefully that works for you... d. ------------------------------ Message: 4 Date: Wed, 19 Nov 2014 22:14:19 +0000 From: James Mullan <jamespamul...@gmail.com> To: galaxy-...@bx.psu.edu Subject: [galaxy-dev] How to get cleanup script to run in cron job ? Message-ID: <camk7q9cktop3qgcso_8smtudd3cbju-h0mnxdfzwpx0g2b4...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hello, I am trying to figure out how to run the cleanup scripts in a cron job. The below works on command line: ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/ To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/