5/26/2021

running shell script and output the screen output to a log file

 guofyuan @ htpvis-025a$ sh 92_insert_salt_test_hard.sh | tee test2.log
Tue Jun  8 15:25:58 CDT 2021
start
Tue Jun  8 15:26:03 CDT 2021
end
pwd= /pdata/pdata26/D_TGS_BRAZIL_CAMPOS_3D/070-jobdeck/028-initial.subsalt.retrend/velo  
guofyuan @ htpvis-025a$ cat test2.log
Tue Jun  8 15:25:58 CDT 2021
start
Tue Jun  8 15:26:03 CDT 2021
end


sh 02_run2.cv.sh >&02_run2.log&

没有评论: