日志持續(xù)生成時(shí)間戳日志
$(date "+%H%M%S")
date "+%Y%m%d"
nohup sh pi.sh > p.txt &
#!/bin/bash
while [ "$hsl" != "Fri Jan 22 22:25:50 CST 2021" ]
do
hsl=`date`
sleep 1
echo `date`
done
echo "lu?dan gei lou"
#nohup和&不一樣的地方就是:&關(guān)了終端就斷開了?
標(biāo)簽: