[Koha-devel] cron job for loading pictures or better option

David Schuster dschust1 at tx.rr.com
Wed Jan 20 16:50:33 CET 2010


I have 53,000 students and a windows server in another building that I have a
fileshare to.  What would be the recommended way to copy those files over
and load them into Koha?

I have tried scp * but the problem is that it only copies what 2000 at a
time and then dies.

I'm a librarian looking for an easy solution without lots of programming.

So here was my thought:

build a cron
first make the fileshare connection
then issue several scp statements to copy the files over to the local server
then issue the command to batch load them

I have a command line utility that someone gave me to batch load pictures. 
I'll find someone to send it to for testing with 3.2.  Next task...

Thoughts?  Comments - is there an easier way?

manually I have copied the files over and run this command to load them I
believe the utility is assuming the files are in the same directory:

./loadimages.sh  - which issues perl loadimages.pl -i IDLINK.txt -l
image.log

from the loadimages.pl file - 

my(%count,$input_file,$error_file,$log_file,$sepchar,$imagedirectory);
$imagedirectory = "";

-- 
View this message in context: http://old.nabble.com/cron-job-for-loading-pictures-or-better-option-tp27243930p27243930.html
Sent from the Koha - Dev mailing list archive at Nabble.com.




More information about the Koha-devel mailing list