用shell 写一个脚本要求实现如下:1ubuntu操作系统进系统后等待10s自动重启;2每次重启前在终端输出这是第几次重启
#!/bin/bash count=1 while true do echo "This is the ${count}th reboot." sleep 10 reboot count=$((count+1)) done
原文地址: https://www.cveoy.top/t/topic/eomX 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#!/bin/bash count=1 while true do echo "This is the ${count}th reboot." sleep 10 reboot count=$((count+1)) done
原文地址: https://www.cveoy.top/t/topic/eomX 著作权归作者所有。请勿转载和采集!