Inside a script, I tried to delay the execution of a command with sleep 4h
however after ~4.5h the command still had not executed.
Of course I haven’t used the phone the whole time, I set it aside almost immediately after launching the script (with nohup
via ssh
).
ps
, top
and htop
show that the script is still sitting there, and sleep
is still active as if no time had passed at all. This is, btw, the busybox version of sleep (and yes, it accepts s, m, h and d suffixes).
Is this expected behavior, possibly caused by the phone going into deep sleep?
How can I delay script execution by a set time? I could try creating ad-hoc systemd timers, but it feels hacky (I want this to be configurable - it’s about delayed sending of SMS).