$(date "+%H%M%S")
date "+%Y%m%d"
nohup sh > &
(资料图片仅供参考)
#!/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和&不一样的地方就是:&关了终端就断开了
Copyright © 2015-2023 华夏体育网版权所有 备案号:琼ICP备2022009675号-37 联系邮箱:435 227 67@qq.com