소스 검색

Matching runSlicer.sh arguments to analysisInterface, particularly, last argument is the directory where log file should end up

NIX Worker 1 년 전
부모
커밋
a088b58d5c
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      slicerScripts/runSlicer.sh

+ 7 - 1
slicerScripts/runSlicer.sh

@@ -12,4 +12,10 @@ TEMP=~/.xpra/temp.log
 
 
 xpra info $DISPLAY > $TEMP || xpra start $DISPLAY;
 xpra info $DISPLAY > $TEMP || xpra start $DISPLAY;
 
 
-nohup $SLICER/Slicer --no-main-window --python-script $1  0<&- &> $HOME/logs/runSlicer.log &
+LOG=$HOME/logs/runSlicer.log
+
+if [ $# -gt 2 ] ; then
+   LOG=$3/runSlicer.log;
+fi;
+
+nohup $SLICER/Slicer --no-main-window --python-script $1 $2 0<&- &> $LOG &