http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9210
--- Comment #9 from Jared Camins-Esakov <[email protected]> --- The script misc/cronjobs/printoverdues.sh does not work at all for me: jcamins@kohadev:~/kohaclone$ sh -v misc/cronjobs/printoverdues.sh /tmp [9/1955] #!/bin/bash print_usage(){ echo "$0 : generates PDF files from html files in directorys and prints them"; echo "usage :"; echo "$0 directory [css [printer_host [printername]]]" echo " - directory directory to use to apply html2pdf transform"; echo " - css css file to apply to html "; echo " - printer_host Network Name or IP of the printer (port possibly included) "; echo " - printer_name printername "; echo "Note that css printerhost and printername are optional parameters "; echo "Note that this script uses xhtml2pdf command "; echo " xhtml2pdf command comes with pisa (a python library) To install you need setuptools library for python then type easy_install pisa "; exit 1; } if [ $# -lt 1 ] then print_usage fi if [[ ! -d $1 ]] then echo "$1 : directory expected"; exit 1; fi misc/cronjobs/printoverdues.sh: 23: misc/cronjobs/printoverdues.sh: [[: not found if [[ -n $2 && -f $2 ]] then optpisa="--css $2"; fi misc/cronjobs/printoverdues.sh: 28: misc/cronjobs/printoverdues.sh: [[: not found if [[ -n $3 ]] then optprinter="-h $3"; fi misc/cronjobs/printoverdues.sh: 32: misc/cronjobs/printoverdues.sh: [[: not found if [[ -n $4 ]] then optprinter="$optprinter -d $4"; fi misc/cronjobs/printoverdues.sh: 36: misc/cronjobs/printoverdues.sh: [[: not found for i in $1/*.html do xhtml2pdf $optpisa $i; done if [[ -n $optprinter ]] then lp $optprinter $1/*.pdf; fi misc/cronjobs/printoverdues.sh: 45: misc/cronjobs/printoverdues.sh: [[: not found tar cvfz $directory`date "+%Y%m%d"`.tar.gz $directory; tar: Cowardly refusing to create an empty archive Try `tar --help' or `tar --usage' for more information. A fix to the syntax so that the script works on current master will be needed before I can push this patch. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
