[ Bash ] 命令进阶
实时执行命令
while :; do clear; ls -lh; sleep 1; done
中间为执行命令,后端是间隔时间
实时脚本
如下,批量启动脚本命令
for j in *; do nohup java -jar $j --spring.profiles.active=test > $j.log 2>&1 & done
实践出真知
while :; do clear; ls -lh; sleep 1; done
中间为执行命令,后端是间隔时间
如下,批量启动脚本命令
for j in *; do nohup java -jar $j --spring.profiles.active=test > $j.log 2>&1 & done