PBS script -o file to multiple locations
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Sometimes when I run jobs on a PBS cluster, I'd really like the joblog (-o file) in two places. One in the $PBS_O_WORKDIR for keeping everthing together and one ${HOME}/jobOuts/ for greping/awking/etc... Doing a test from the command line works with tee : echo "hello" | qsub -o `tee $HOME/out1.o $HOME/out2.o $HOME/out3.o` But once I try to put this in my PBS script, it does not work if I put it in a PBS script and qsub ####Parameterized PBS Script #### #PBS -S /bin/bash #PBS -l nodes=1 #PBS -l walltime=0:01:00 #PBS -j oe #PBS -o `tee TEE