Re: [Dspace-tech] Dspace 1.5.1 - enabling Statistics
Hi Jewel, In DSpace 1.5 > the stats have been re-written in Java which means they can be run from the bin directory in the following manner without the need for Perl: dsrun org.dspace.app.statistics.CreateStatReport -r stat-general dsrun org.dspace.app.statistics.CreateStatReport -r stat-report-general ... The easiest way is to create batch scripts to run these stat reports and add them to the Windows scheduled tasks along with other useful scripts such as sub-daily etc. I've uploaded our batch scripts to http://users.aber.ac.uk/csy/windows-batch.zip if they are of use. The extensions will need to be changed from .txt to .bat and then the scripts run from the [dspace]\bin directory. Let me know if you have any problems, Regards, Chris -- Chris Yates Technical Repository Support Officer JISC Repositories Support Project Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail c...@aber.ac.uk Ffon / Tel: (01908) 235807 -- -Original Message- From: Jewel [mailto:jewel.brueggeman-ma...@washburn.edu] Sent: 27 February 2009 17:20 To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] Dspace 1.5.1 - enabling Statistics I am trying to enable the statistics in Dspace but when I issue the perl command to run stat-general it throws an error. The error is: "Can't exec /bin/sh at C:/dspace/bin/state-general' I successfully installed Perl and my environment variable is correct. The first line in the stat scripts are: #!/bin/sh Everywhere I have looked states I need to use perl to run these scripts. I am running Dspace 1.5.1 on a Windows 2003 machine. Are setting up the stats different in this version? Do I need to edit the state-* scripts? Thanks, -- J -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Dspace 1.5.1 - enabling Statistics
--- Begin Message --- There are two separate issues. 1. To run perl scripts in Windows, when ActivePerl is installed and path environment is set, open a command prompt, type perl [your-script] 2. some scripts under dspace/bin are not perl scripts. They are unix/linux shell scripts. e.g. stat-general is a script to run a java program. So, you need to run the program at the root of the classpath java -cp [valid_classpath_string] org.dspace.app.statistics.CreateStatReport -r stat-general If your class files are contained in a jar, you can add the -jar argument. It is not easy. Finding out your classpath string is a painful experience. type java -help and google a lot to see how to run a java program. You may need some java programmers to help. Regards, Allen Lam. HKU Hub Administrator, http://hub.hku.hk Jewel Makda wrote: I already installed ActivePerl but it's when I issue the command it says there is an error in line 1 which is #/bin/sh My thought was maybe the stat-general and etc. scripts were not suppose to be run using perl. Allen Lam wrote: Jewel, On Linux and Unix machines perl is usually pre-installed. In Windows it is not the case. You need to install a thing called "activeperl". Google for it. Regards, Allen Lam. HKU Hub Administrator, http://hub.hku.hk Jewel wrote: I am trying to enable the statistics in Dspace but when I issue the perl command to run stat-general it throws an error. The error is: "Can't exec /bin/sh at C:/dspace/bin/state-general' I successfully installed Perl and my environment variable is correct. The first line in the stat scripts are: #!/bin/sh Everywhere I have looked states I need to use perl to run these scripts. I am running Dspace 1.5.1 on a Windows 2003 machine. Are setting up the stats different in this version? Do I need to edit the state-* scripts? Thanks, --- End Message --- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Dspace 1.5.1 - enabling Statistics
Jewel, On Linux and Unix machines perl is usually pre-installed. In Windows it is not the case. You need to install a thing called "activeperl". Google for it. Regards, Allen Lam. HKU Hub Administrator, http://hub.hku.hk Jewel wrote: > I am trying to enable the statistics in Dspace but when I issue the perl > command to run stat-general it throws an error. The error is: "Can't > exec /bin/sh at C:/dspace/bin/state-general' > I successfully installed Perl and my environment variable is correct. > The first line in the stat scripts are: #!/bin/sh > Everywhere I have looked states I need to use perl to run these scripts. > I am running Dspace 1.5.1 on a Windows 2003 machine. Are setting up the > stats different in this version? Do I need to edit the state-* scripts? > > Thanks, > -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Dspace 1.5.1 - enabling Statistics
I am trying to enable the statistics in Dspace but when I issue the perl command to run stat-general it throws an error. The error is: "Can't exec /bin/sh at C:/dspace/bin/state-general' I successfully installed Perl and my environment variable is correct. The first line in the stat scripts are: #!/bin/sh Everywhere I have looked states I need to use perl to run these scripts. I am running Dspace 1.5.1 on a Windows 2003 machine. Are setting up the stats different in this version? Do I need to edit the state-* scripts? Thanks, -- J -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech