[Loris-dev] batch_uploads_tarchive error

Dave MacFarlane david.macfarlane2 at mcgill.ca
Tue Oct 23 10:01:38 EDT 2012


You can ignore both of those warnings. Settings::is_qsub is, in fact, only used once, but it's still a config value that's used. 
The Use of uninitialized value warning has been there for as long as I can remember, but I've never looked into what causes it. It can be safely ignored.

The script is waiting for you to give a list of files that you want to be processed from stdin, followed by Ctrl-D.

So the input at this point would be something like:

ROT DCM_2012-01-01__subject_100.tar
^D

I think when we were there, we put the list of files into a file, 
and then used shell re-direction, which is effectively the same thing.

(The reason there's no prompt is that this is usually called from a script/cron job, not manually except when debugging.) 


- Dave

From: m.schmidt at erasmusmc.nl
To: loris-dev at bic.mni.mcgill.ca
Date: Tue, 23 Oct 2012 10:38:32 +0000
Subject: [Loris-dev] batch_uploads_tarchive error






Hi Loris Gurus,



I seem to be having trouble with the "batch_uploads_tarchive" script and am wondering if someone might be able to provide some insight. Here's the command, which was killed after waiting over 25 minutes:




lorisadmin at rietveld:/data/genr/bin/mri$ ./batch_uploads_tarchive 
Name "Settings::is_qsub" used only once: possible typo at ./batch_uploads_tarchive line 51.
Use of uninitialized value $_ in pattern match (m//) at ./batch_uploads_tarchive line 16.
^C
lorisadmin at rietveld:/data/genr/bin/mri$ 




Should I be providing an input argument, and if so, what? I'm new to perl, so there's a very good chance I am missing something when I view the code while trying to debug. (It looks like there should be some sort of input, but from the demo, I don't recall
 needing user input until it's asked for by the script itself.) Also, using the verbose and debug flags only change line number reported for the "uninitialized value" error (referencing the line defining verbose or debug)... no additional output is displayed.



Note that the following command successfully imports data into the Loris database, upon which I can use the web viewers, etc:




./copy_and_process_tarchive /data/incoming/ROT/incoming/DCM_2012-01-01__subject_100.tar marcus




Any thoughts are greatly appreciated!!



Cheers,
Marcus































___________________________________
Marcus N Schmidt
Erasmus MC - Sophia

Department of Child & Adolescent Psychiatry/Psychology

Visiting address: Wytemaweg 8, 3015 CN, Rotterdam

Postal address: P.O.Box 2060, 3000 CB Rotterdam
The Netherlands



www.erasmusmc.nl/kinderenjeugdpsychiatrie




















_______________________________________________
Loris-dev mailing list
Loris-dev at bic.mni.mcgill.ca
http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20121023/6a814f01/attachment.htm>


More information about the Loris-dev mailing list