Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-07 Thread Phillip Ponchot
In the absence of a sane plan, I'm going with yours (just kidding -smile).  
This is a paraphrase from the TV series Red Dwarf and I love to use it whenever 
I can.

Thank you so much for sharing.  This will make it much easier for me to get 
things working in Koha.   Although I'll have to do some substitution since Koha 
was loaded in /etc/koha this is going to help tremendously to recreate the 
crontab for Koha.

Phillip
Date: Mon, 7 Jul 2014 09:32:52 +0530
Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
From: vishal.pa...@osslabs.biz
To: pponc...@live.com

Hi Philip,
I think you have to set crontab again for this new version.
I am using below 
crontab:PATH=/usr/bin:/sbin:/bin:/usr/sbinHOME=/home/koha/koha-dev(config)
PERL5LIB=/home/koha/kohaclone(src-code)KOHA_CONF=/home/koha/koha-dev(config)/etc/koha-conf.xmlKOHA_CRON_PATH
 = /home/koha/kohaclone(src-code)/misc/cronjobs*/1 * * * * 
$PERL5LIB/misc/migration_tools/rebuild_zebra.pl -b -z
5 2 * * * $KOHA_CRON_PATH/fines.pl*/15 * * * * 
$PERL5LIB/misc/cronjobs/process_message_queue.pl10 3 * * * 
$KOHA_CRON_PATH/advance_notices.pl -c
0 3 * * * $KOHA_CRON_PATH/overdue_notices.pl -t#5 2 * * * 
$KOHA_CRON_PATH/fines.pl50 * * * * $KOHA_CRON_PATH/holds/build_holds_queue.pl 
/dev/null 21
0 3 * * * $KOHA_CRON_PATH/holds/cancel_expired_holds.pl /dev/null 21
Hope this will help you.



On Mon, Jul 7, 2014 at 9:19 AM, Phillip Ponchot pponc...@live.com wrote:

My new version of koha 3.14 is up and working.  I was just looking at the 
crontab jobs and I didn't find anything in there.  I used sudo crontab -e to 
open crontab.



From the old version of koha, there were several contrab jobs - exporting 
Perl,  running fines.pl etc.



Are these jobs automatically put into crontab or do I have to put the jobs into 
crontab myself.  Does anyone have a good example of the koha crontab jobs that 
should be in the crontab?



Thanks,



Phillip



___

Koha mailing list  http://koha-community.org

Koha@lists.katipo.co.nz

http://lists.katipo.co.nz/mailman/listinfo/koha



-- 
Warm Regards,Vishal Patil
Software Engineer - Nucsoft Ltd.phone: 022 32080161
www.osslabs.biz
www.nucsoft.com

vishal.pa...@osslabs.biz



  
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-07 Thread Phillip Ponchot
The old koha was installed as a tarball on the old server so I believe this 
makes it a source-based.  The new koha was installed via a repository.  apt-get 
install koha-common.

I did find in /etc/cron.d  a koha-common file.  The contents of this file was:
---
# /etc/cron.d/koha-common
#
# Call koha-rebuild-zebra for each enabled Koha instance, to make sure the
# Zebra indexes are up to date.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra  koha-rebuild-zebra -q 
$(koha-list --enabled)
*/15 * * * * root koha-foreach --enabled --email 
/usr/share/koha/bin/cronjobs/process_message_queue.pl
-
also there is a directory in  /user/share/koha/bin/cronjobs - are these run by 
the koha program or do I have to schedule them in a crontab job?  


advance_notices.pl   holds
backup.sh   import_webservice_batch.pl
batch_anonymise.pl j2a.pl
build_browser_and_cloud.pl longoverdue.pl
cart_to_shelf.plMARC21_parse_test.pl
check-url.pl  overdue_notices.pl
check-url-quick.pl   printoverdues.sh
cleanup_database.pl  process_message_queue.pl
cloud-kw.pl  purge_suggestions.pl
cloud-sample.conf  rss
CONFIGURE.gmail   runreport.pl
create_koc_db.plserialsUpdate.pl
crontab.example services_throttle.pl
delete_expired_opac_registrations.pl social_data
delete_patrons.plstaticfines.pl
delete_unverified_opac_registrations.pl  thirdparty
fines.pl update_totalissues.pl
gather_print_notices.pl
--
I just want to run automatically anything that needs to be done to keep koha up 
to date.

Thanks


Phillip

 From: mtomp...@hotmail.com
 To: pponc...@live.com
 CC: koha@lists.katipo.co.nz
 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
 Date: Mon, 7 Jul 2014 14:00:19 -0400
 
 Greetings,
 
 First, you still did not specify if you were doing a package installation or 
 a source-based installation. Which are you doing? If a source-based 
 installation, then your hacked up solution is passable, though not optimal.
 
 Second, let's reply to your points:
  There is a systems crontab which ubuntu warns not to change.
 
 You can create crontab jobs at the system level without modifying existing 
 ones. Every file placed in the appropriate cron.* directory is its own 
 crontab file.
 
 
  The crontab on the old server is sudo crotab -uroot -e where all the koha 
  cronjobs are setup.
 
 This is a user crontab still. Was the old system a source-based installation 
 or was it a packages based installation? If you are finding user crontabs, 
 then it likely was a source-based installation. Why do you need to have the 
 new system as a source-based install? A package-based installation sets up 
 all the crontab jobs you need by default for you already. No crontab job 
 tweaks required.
 
 Seriously, please consider a packages based installation:
 http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
 
 
 And thirdly and lastly, did you actually go looking for crontab jobs 
 manually? Like the following done on a package installation of Koha that we 
 are using in production.
 
 $ cd /etc/cron.d
 $ ls -la
 total 20
 drwxr-xr-x  2 root root 4096 Feb 11 17:29 .
 drwxr-xr-x 98 root root 4096 Jul  7 17:39 ..
 -rw-r--r--  1 root root  422 Nov 22  2013 koha-common
 -rw-r--r--  1 root root  102 Jun 19  2012 .placeholder
 -rw-r--r--  1 root root  396 Dec 16  2011 sysstat
 $ cat koha-common
 # /etc/cron.d/koha-common
 #
 # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the
 # Zebra indexes are up to date.
 
 SHELL=/bin/sh
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
 */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra  
 koha-rebuild-zebra -q $(koha-list --enabled)
 */15 * * * * root koha-foreach --enabled --email 
 /usr/share/koha/bin/cronjobs/process_message_queue.pl
 $ cd ../cron.daily
 $ ls -la
 total 84
 drwxr-xr-x  2 root root  4096 Jun 25 11:55 .
 drwxr-xr-x 98 root root  4096 Jul  7 17:39 ..
 -rwxr-xr-x  1 root root   633 Jul 12  2013 apache2
 -rwxr-xr-x  1 root root

Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-07 Thread Chris Cormack
Don't touch anything. Seriously. 

If you have a packaged install, it's all been done. Look in cron.d, cron.daily 
etc all the jobs have been set up. 

Chris 

On 8 July 2014 7:17:29 am NZST, Phillip Ponchot pponc...@live.com wrote:
The old koha was installed as a tarball on the old server so I believe
this makes it a source-based.  The new koha was installed via a
repository.  apt-get install koha-common.

I did find in /etc/cron.d  a koha-common file.  The contents of this
file was:
---
# /etc/cron.d/koha-common
#
# Call koha-rebuild-zebra for each enabled Koha instance, to make sure
the
# Zebra indexes are up to date.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra 
koha-rebuild-zebra -q $(koha-list --enabled)
*/15 * * * * root koha-foreach --enabled --email
/usr/share/koha/bin/cronjobs/process_message_queue.pl
-
also there is a directory in  /user/share/koha/bin/cronjobs - are these
run by the koha program or do I have to schedule them in a crontab job?
 


advance_notices.pl   holds
backup.sh  
import_webservice_batch.pl
batch_anonymise.pl j2a.pl
build_browser_and_cloud.pl longoverdue.pl
cart_to_shelf.plMARC21_parse_test.pl
check-url.pl  overdue_notices.pl
check-url-quick.pl   printoverdues.sh
cleanup_database.pl  process_message_queue.pl
cloud-kw.pl  purge_suggestions.pl
cloud-sample.conf  rss
CONFIGURE.gmail   runreport.pl
create_koc_db.plserialsUpdate.pl
crontab.example services_throttle.pl
delete_expired_opac_registrations.pl social_data
delete_patrons.plstaticfines.pl
delete_unverified_opac_registrations.pl  thirdparty
fines.pl update_totalissues.pl
gather_print_notices.pl
--
I just want to run automatically anything that needs to be done to keep
koha up to date.

Thanks


Phillip

 From: mtomp...@hotmail.com
 To: pponc...@live.com
 CC: koha@lists.katipo.co.nz
 Subject: Re: [Koha] Crontab - is that one tabs used to open beer
cans?
 Date: Mon, 7 Jul 2014 14:00:19 -0400
 
 Greetings,
 
 First, you still did not specify if you were doing a package
installation or 
 a source-based installation. Which are you doing? If a source-based 
 installation, then your hacked up solution is passable, though not
optimal.
 
 Second, let's reply to your points:
  There is a systems crontab which ubuntu warns not to change.
 
 You can create crontab jobs at the system level without modifying
existing 
 ones. Every file placed in the appropriate cron.* directory is its
own 
 crontab file.
 
 
  The crontab on the old server is sudo crotab -uroot -e where all
the koha 
  cronjobs are setup.
 
 This is a user crontab still. Was the old system a source-based
installation 
 or was it a packages based installation? If you are finding user
crontabs, 
 then it likely was a source-based installation. Why do you need to
have the 
 new system as a source-based install? A package-based installation
sets up 
 all the crontab jobs you need by default for you already. No crontab
job 
 tweaks required.
 
 Seriously, please consider a packages based installation:
 http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
 
 
 And thirdly and lastly, did you actually go looking for crontab jobs 
 manually? Like the following done on a package installation of Koha
that we 
 are using in production.
 
 $ cd /etc/cron.d
 $ ls -la
 total 20
 drwxr-xr-x  2 root root 4096 Feb 11 17:29 .
 drwxr-xr-x 98 root root 4096 Jul  7 17:39 ..
 -rw-r--r--  1 root root  422 Nov 22  2013 koha-common
 -rw-r--r--  1 root root  102 Jun 19  2012 .placeholder
 -rw-r--r--  1 root root  396 Dec 16  2011 sysstat
 $ cat koha-common
 # /etc/cron.d/koha-common
 #
 # Call koha-rebuild-zebra for each enabled Koha instance, to make
sure the
 # Zebra indexes are up to date.
 
 SHELL=/bin/sh
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
 */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra  
 koha-rebuild-zebra -q $(koha-list --enabled)
 */15 * * * * root koha-foreach --enabled --email 
 /usr/share/koha/bin/cronjobs

Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-07 Thread Tomas Cohen Arazi
+1
El jul 7, 2014 4:57 PM, Chris Cormack chr...@catalyst.net.nz escribió:

 Don't touch anything. Seriously.

 If you have a packaged install, it's all been done. Look in cron.d,
 cron.daily etc all the jobs have been set up.

 Chris

 On 8 July 2014 7:17:29 am NZST, Phillip Ponchot pponc...@live.com wrote:
 The old koha was installed as a tarball on the old server so I believe
 this makes it a source-based.  The new koha was installed via a
 repository.  apt-get install koha-common.
 
 I did find in /etc/cron.d  a koha-common file.  The contents of this
 file was:

 ---
 # /etc/cron.d/koha-common
 #
 # Call koha-rebuild-zebra for each enabled Koha instance, to make sure
 the
 # Zebra indexes are up to date.
 
 SHELL=/bin/sh
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
 */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra 
 koha-rebuild-zebra -q $(koha-list --enabled)
 */15 * * * * root koha-foreach --enabled --email
 /usr/share/koha/bin/cronjobs/process_message_queue.pl

 -
 also there is a directory in  /user/share/koha/bin/cronjobs - are these
 run by the koha program or do I have to schedule them in a crontab job?
 
 

 
 advance_notices.pl   holds
 backup.sh
 import_webservice_batch.pl
 batch_anonymise.pl j2a.pl
 build_browser_and_cloud.pl longoverdue.pl
 cart_to_shelf.plMARC21_parse_test.pl
 check-url.pl  overdue_notices.pl
 check-url-quick.pl   printoverdues.sh
 cleanup_database.pl  process_message_queue.pl
 cloud-kw.pl  purge_suggestions.pl
 cloud-sample.conf  rss
 CONFIGURE.gmail   runreport.pl
 create_koc_db.plserialsUpdate.pl
 crontab.example services_throttle.pl
 delete_expired_opac_registrations.pl social_data
 delete_patrons.plstaticfines.pl
 delete_unverified_opac_registrations.pl  thirdparty
 fines.pl update_totalissues.pl
 gather_print_notices.pl

 --
 I just want to run automatically anything that needs to be done to keep
 koha up to date.
 
 Thanks
 
 
 Phillip
 
  From: mtomp...@hotmail.com
  To: pponc...@live.com
  CC: koha@lists.katipo.co.nz
  Subject: Re: [Koha] Crontab - is that one tabs used to open beer
 cans?
  Date: Mon, 7 Jul 2014 14:00:19 -0400
 
  Greetings,
 
  First, you still did not specify if you were doing a package
 installation or
  a source-based installation. Which are you doing? If a source-based
  installation, then your hacked up solution is passable, though not
 optimal.
 
  Second, let's reply to your points:
   There is a systems crontab which ubuntu warns not to change.
 
  You can create crontab jobs at the system level without modifying
 existing
  ones. Every file placed in the appropriate cron.* directory is its
 own
  crontab file.
 
 
   The crontab on the old server is sudo crotab -uroot -e where all
 the koha
   cronjobs are setup.
 
  This is a user crontab still. Was the old system a source-based
 installation
  or was it a packages based installation? If you are finding user
 crontabs,
  then it likely was a source-based installation. Why do you need to
 have the
  new system as a source-based install? A package-based installation
 sets up
  all the crontab jobs you need by default for you already. No crontab
 job
  tweaks required.
 
  Seriously, please consider a packages based installation:
  http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
 
 
  And thirdly and lastly, did you actually go looking for crontab jobs
  manually? Like the following done on a package installation of Koha
 that we
  are using in production.
 
  $ cd /etc/cron.d
  $ ls -la
  total 20
  drwxr-xr-x  2 root root 4096 Feb 11 17:29 .
  drwxr-xr-x 98 root root 4096 Jul  7 17:39 ..
  -rw-r--r--  1 root root  422 Nov 22  2013 koha-common
  -rw-r--r--  1 root root  102 Jun 19  2012 .placeholder
  -rw-r--r--  1 root root  396 Dec 16  2011 sysstat
  $ cat koha-common
  # /etc/cron.d/koha-common
  #
  # Call koha-rebuild-zebra for each enabled Koha instance, to make
 sure the
  # Zebra indexes are up to date.
 
  SHELL=/bin/sh
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
  */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra

Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-07 Thread Phillip Ponchot
I've got the big picture now.  I see where the koha crontab jobs are setup.  
Thanks so much for your help.  

Phillip

 From: mtomp...@hotmail.com
 To: koha@lists.katipo.co.nz
 Date: Mon, 7 Jul 2014 17:14:57 -0400
 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
 
 Greetings,
 
 Chris Cormack wrote:
  Don't touch anything. Seriously.
 
  If you have a packaged install, it's all been done. Look in cron.d, 
  cron.daily etc all the jobs have been set up.
 
 Yet another wonderful reason to not even be tinkering with crontab jobs.
 
 +1 for package installations.
 +1 for not having to touch crontab jobs.
 +1 for confirmation of this awesomeness.
 +2 cents to round to the nearest nickel, because pennies are out of 
 circulation in Canada now. ;)
 
 GPML,
 Mark Tompsett 
 
 ___
 Koha mailing list  http://koha-community.org
 Koha@lists.katipo.co.nz
 http://lists.katipo.co.nz/mailman/listinfo/koha
  
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-07 Thread Phillip Ponchot
Ok, I see where the jobs are.  I didn't understand that there was a difference 
between a source install and a package install. 

In some of the 3.14 documentation there is a chapter on cronjobs and how to set 
them up.  Now i understand that these particular documents must be mean for the 
source installs.  

Personally, I'm a little relieved that I don't have to build the cronjob for 
Koha.

Thanks to everyone for the help. 

Hang in there, 


Phillip

Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
From: chr...@catalyst.net.nz
Date: Tue, 8 Jul 2014 07:56:30 +1200
To: pponc...@live.com; mtomp...@hotmail.com
CC: koha@lists.katipo.co.nz

Don't touch anything. Seriously. 



If you have a packaged install, it's all been done. Look in cron.d, cron.daily 
etc all the jobs have been set up. 



Chris 

On 8 July 2014 7:17:29 am NZST, Phillip Ponchot pponc...@live.com wrote:
The old koha was installed as a tarball on the old server so I believe this 
makes it a source-based.  The new koha was installed via a repository.  apt-get 
install koha-common.

I did find in /etc/cron.d  a koha-common file.  The contents of this file was:

# /etc/cron.d/koha-common
#
# Call koha-rebuild-zebra for each enabled Koha instance, to make sure the
# Zebra indexes are up to date.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra  koha-rebuild-zebra -q 
$(koha-list --enabled)
*/15 * * * * root koha-foreach --enabled --email 
/usr/share/koha/bin/cronjobs/process_message_queue.pl

also there is a directory in  /user/share/koha/bin/cronjobs - are these run by 
the koha program or do I have to schedule them in a crontab job?  


advance_notices.pl   holds
backup.sh   import_webservice_batch.pl
batch_anonymise.pl j2a.pl
build_browser_and_cloud.pl longoverdue.pl
cart_to_shelf.plMARC21_parse_test.pl
check-url.pl  overdue_notices.pl
check-url-quick.pl   printoverdues.sh
cleanup_database.pl  process_message_queue.pl
cloud-kw.pl  purge_suggestions.pl
cloud-sample.conf  rss
CONFIGURE.gmail   runreport.pl
create_koc_db.plserialsUpdate.pl
crontab.example services_throttle.pl
delete_expired_opac_registrations.pl social_data
delete_patrons.plstaticfines.pl
delete_unverified_opac_registrations.pl  thirdparty
fines.pl update_totalissues.pl
gather_print_notices.pl

I just want to run automatically anything that needs to be done to keep koha up 
to date.

Thanks


Phillip

 From: mtomp...@hotmail.com
 To: pponc...@live.com
 CC: koha@lists.katipo.co.nz
 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
 Date: Mon, 7 Jul 2014 14:00:19 -0400
 
 Greetings,
 
 First, you still did not specify if you were doing a package installation or 
 a source-based installation. Which are you doing? If a source-based 
 installation, then your hacked up solution is passable, though not optimal.
 
 Second, let's reply to your points:
 There is a syste
 ms
crontab which ubuntu warns not to change.
 
 You can create crontab jobs at the system level without modifying existing 
 ones. Every file placed in the appropriate cron.* directory is its own 
 crontab file.
 
 
 The crontab on the old server is sudo crotab -uroot -e where all the koha 
 cronjobs are setup.
 
 This is a user crontab still. Was the old system a source-based installation 
 or was it a packages based installation? If you are finding user crontabs, 
 then it likely was a source-based installation. Why do you need to have the 
 new system as a source-based install? A package-based installation sets up 
 all the crontab jobs you need by default for you already. No crontab job 
 tweaks required.
 
 Seriously, please consider a packages base
 d
installation:
 http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
 
 
 And thirdly and lastly, did you actually go looking for crontab jobs 
 manually? Like the following done on a package installation of Koha that we 
 are using in production.
 
 $ cd /etc/cron.d
 $ ls -la
 total 20
 drwxr-xr-x  2 root root 4096 Feb 11 17:29 .
 drwxr-xr-x 98 root root 4096 Jul  7 17:39 ..
 -rw-r--r--  1 root root  422 Nov 22  2013 koha-common
 -rw-r--r--  1 root root  102 Jun 19  2012 .placeholder
 -rw-r--r--  1 root root  396 Dec 16  2011 sysstat
 $ cat koha-common
 # /etc/cron.d/koha-common
 #
 # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the
 # Zebra indexes are up to date.
 
 SHELL=/bin/sh
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra  
 koha-rebuild-zebra -q $(koha-list --enabled

Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-07 Thread Phillip Ponchot
Thanks for sticking with me.  Sometimes I can be a little dense.  I see the 
koha jobs in cron.daily and realize based on the info that you've given me that 
I don't have to setup the cron jobs.  I'm a little relieved that I don't - 
smile. 

Thanks everyone for your help.  Thank you especially Tomas. 

Phillip

Date: Mon, 7 Jul 2014 17:45:32 -0300
Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
From: tomasco...@gmail.com
To: chr...@catalyst.net.nz
CC: koha@lists.katipo.co.nz; pponc...@live.com; mtomp...@hotmail.com

+1
El jul 7, 2014 4:57 PM, Chris Cormack chr...@catalyst.net.nz escribió:

Don't touch anything. Seriously.



If you have a packaged install, it's all been done. Look in cron.d, cron.daily 
etc all the jobs have been set up.



Chris



On 8 July 2014 7:17:29 am NZST, Phillip Ponchot pponc...@live.com wrote:

The old koha was installed as a tarball on the old server so I believe

this makes it a source-based.  The new koha was installed via a

repository.  apt-get install koha-common.



I did find in /etc/cron.d  a koha-common file.  The contents of this

file was:

---

# /etc/cron.d/koha-common

#

# Call koha-rebuild-zebra for each enabled Koha instance, to make sure

the

# Zebra indexes are up to date.



SHELL=/bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin



*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra 

koha-rebuild-zebra -q $(koha-list --enabled)

*/15 * * * * root koha-foreach --enabled --email

/usr/share/koha/bin/cronjobs/process_message_queue.pl

-

also there is a directory in  /user/share/koha/bin/cronjobs - are these

run by the koha program or do I have to schedule them in a crontab job?







advance_notices.pl   holds

backup.sh

import_webservice_batch.pl

batch_anonymise.pl j2a.pl

build_browser_and_cloud.pl longoverdue.pl

cart_to_shelf.plMARC21_parse_test.pl

check-url.pl  overdue_notices.pl

check-url-quick.pl   printoverdues.sh

cleanup_database.pl  process_message_queue.pl

cloud-kw.pl  purge_suggestions.pl

cloud-sample.conf  rss

CONFIGURE.gmail   runreport.pl

create_koc_db.plserialsUpdate.pl

crontab.example services_throttle.pl

delete_expired_opac_registrations.pl social_data

delete_patrons.plstaticfines.pl

delete_unverified_opac_registrations.pl  thirdparty

fines.pl update_totalissues.pl

gather_print_notices.pl

--

I just want to run automatically anything that needs to be done to keep

koha up to date.



Thanks





Phillip



 From: mtomp...@hotmail.com

 To: pponc...@live.com

 CC: koha@lists.katipo.co.nz

 Subject: Re: [Koha] Crontab - is that one tabs used to open beer

cans?

 Date: Mon, 7 Jul 2014 14:00:19 -0400



 Greetings,



 First, you still did not specify if you were doing a package

installation or

 a source-based installation. Which are you doing? If a source-based

 installation, then your hacked up solution is passable, though not

optimal.



 Second, let's reply to your points:

  There is a systems crontab which ubuntu warns not to change.



 You can create crontab jobs at the system level without modifying

existing

 ones. Every file placed in the appropriate cron.* directory is its

own

 crontab file.





  The crontab on the old server is sudo crotab -uroot -e where all

the koha

  cronjobs are setup.



 This is a user crontab still. Was the old system a source-based

installation

 or was it a packages based installation? If you are finding user

crontabs,

 then it likely was a source-based installation. Why do you need to

have the

 new system as a source-based install? A package-based installation

sets up

 all the crontab jobs you need by default for you already. No crontab

job

 tweaks required.



 Seriously, please consider a packages based installation:

 http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages





 And thirdly and lastly, did you actually go looking for crontab jobs

 manually? Like the following done on a package installation of Koha

that we

 are using in production.



 $ cd /etc/cron.d

 $ ls -la

 total 20

 drwxr-xr-x  2 root

Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-06 Thread Mark Tompsett

Greetings,

Are these jobs automatically put into crontab or do I have to put the jobs 
into crontab myself.


There are user crontabs and system crontabs. Did you check both? Did you 
install using packages or from source? A source-based install you need to 
add your own. Koha let's you do it either way, if you are doing a 
source-based install.



Does anyone have a good example of the koha crontab jobs that should be in 
the crontab?


Not at this hour. But if you find the crontabs, it will make sense.


GPML,
Mark Tompsett 


___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-06 Thread Phillip Ponchot
Thank you so much.  Its easier to use one that is already built than to spend 
hours trying to build the crontab.  I appreciate you're sharing.  Phillip

Date: Mon, 7 Jul 2014 09:32:52 +0530
Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
From: vishal.pa...@osslabs.biz
To: pponc...@live.com

Hi Philip,
I think you have to set crontab again for this new version.
I am using below 
crontab:PATH=/usr/bin:/sbin:/bin:/usr/sbinHOME=/home/koha/koha-dev(config)
PERL5LIB=/home/koha/kohaclone(src-code)KOHA_CONF=/home/koha/koha-dev(config)/etc/koha-conf.xmlKOHA_CRON_PATH
 = /home/koha/kohaclone(src-code)/misc/cronjobs*/1 * * * * 
$PERL5LIB/misc/migration_tools/rebuild_zebra.pl -b -z
5 2 * * * $KOHA_CRON_PATH/fines.pl*/15 * * * * 
$PERL5LIB/misc/cronjobs/process_message_queue.pl10 3 * * * 
$KOHA_CRON_PATH/advance_notices.pl -c
0 3 * * * $KOHA_CRON_PATH/overdue_notices.pl -t#5 2 * * * 
$KOHA_CRON_PATH/fines.pl50 * * * * $KOHA_CRON_PATH/holds/build_holds_queue.pl 
/dev/null 21
0 3 * * * $KOHA_CRON_PATH/holds/cancel_expired_holds.pl /dev/null 21
Hope this will help you.



On Mon, Jul 7, 2014 at 9:19 AM, Phillip Ponchot pponc...@live.com wrote:

My new version of koha 3.14 is up and working.  I was just looking at the 
crontab jobs and I didn't find anything in there.  I used sudo crontab -e to 
open crontab.



From the old version of koha, there were several contrab jobs - exporting 
Perl,  running fines.pl etc.



Are these jobs automatically put into crontab or do I have to put the jobs into 
crontab myself.  Does anyone have a good example of the koha crontab jobs that 
should be in the crontab?



Thanks,



Phillip



___

Koha mailing list  http://koha-community.org

Koha@lists.katipo.co.nz

http://lists.katipo.co.nz/mailman/listinfo/koha



-- 
Warm Regards,Vishal Patil
Software Engineer - Nucsoft Ltd.phone: 022 32080161
www.osslabs.biz
www.nucsoft.com

vishal.pa...@osslabs.biz



  
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Crontab - is that one tabs used to open beer cans?

2014-07-06 Thread Robin Sheat
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]:
 Thank you so much.  Its easier to use one that is already built than
 to spend hours trying to build the crontab.  I appreciate you're
 sharing.  Phillip

Go with what Mark said to start with: you're viewing the user crontab
when you use crontab -e, and that's most likely not what you want.

The Koha-specific one lives in /etc/crontab or as a file
within /etc/crontab.d.

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF

___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha