于是另写一个固定延时显示时间的脚本做测试
代码: 全选
# 测试进程是否持续执行
use Date::Format;
STDOUT->autoflush(1);
while (1)
{
printf "%s\n", time2str( "%H:%M:%S", time() );
sleep 60;
}
https://wiki.termux.com/wiki/Termux-wake-lock
代码: 全选
termux-wake-unlock
代码: 全选
# 测试进程是否持续执行
use Date::Format;
STDOUT->autoflush(1);
while (1)
{
printf "%s\n", time2str( "%H:%M:%S", time() );
sleep 60;
}
代码: 全选
termux-wake-unlock
正浏览此版面之用户: Ahrefs [Bot] 和 4 访客