Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

1
0

main 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. # Help
  3. if [ "$#" = 0 ]
  4. then
  5. echo "ERROR: No arguments passed."
  6. cat /.singularity.d/runscript.help
  7. exit 1
  8. fi
  9. # Copy or view batch files
  10. STANDALONE="/code/SPM/MCR_Linux/spm12_mcr/home/gaser/gaser/spm/spm12/toolbox/cat12/standalone"
  11. if [ "$1" = "copy" ]
  12. then
  13. if [ "$2" = "all" ]
  14. then
  15. echo "Copying batch files to:"
  16. cp -vi ${STANDALONE}/*.txt "$3"
  17. exit 0
  18. elif [ -f ${STANDALONE}/"$2" ]
  19. then
  20. echo "Copying batch file to:"
  21. cp -vi ${STANDALONE}/"$2" "$3"
  22. exit 0
  23. else
  24. echo "ERROR: batch file $2 not found. Available batch files are:"
  25. find ${STANDALONE} -name "*.txt" -printf "%f\n"
  26. exit 1
  27. fi
  28. elif [ "$1" = "view" ]
  29. then
  30. if [ -f ${STANDALONE}/"$2" ]
  31. then
  32. cat ${STANDALONE}/"$2"
  33. exit 0
  34. else
  35. echo "ERROR: batch file $2 not found. Available batch files are:"
  36. find ${STANDALONE} -name "*.txt" -printf "%f\n"
  37. exit 1
  38. fi
  39. fi
  40. # Run CAT
  41. NOW=$(date +%s)
  42. exec /code/cat_standalone.sh "$@" 2>&1 |tee cat_$NOW.log