I'm having some problems with combining python, time and tee.
I have a script script.sh which contains following line:
{ time python extractPassRate.py -i DataPaths/background.list -o PassRates/background.csv ; } 2>&1 | tee log.log
However, when I do:
source script.sh
The terminal just hangs.
Interestingly when i replace that line with:
{ time python extractPassRate.py ; } 2>&1 | tee log.log
(that is, if I remove the python script arguments) or
{ time python extractPassRate.py -i DataPaths/background.list -o PassRates/background.csv ; } 2>&1
(not saving to log.log)
The script works.
Is there something wrong with the first line?