cliclick icon indicating copy to clipboard operation
cliclick copied to clipboard

How to schedule a task ?

Open nemoleo opened this issue 3 years ago • 1 comments

I have seen there is a 'w' command to excute command after a while, but if i wanna to schedule a task happen just in 7:00:00. which command could make this happen ?

nemoleo avatar Nov 11 '22 11:11 nemoleo

Sorry for the late answer. You could use the sleep command to delay execution. Not what I’d call elegant, but should work. In your case, with 7 hours (= 25,200 seconds) this could be used like …

sleep 25200 && cliclick c:123,456

Disclaimer: I’ve never used sleep with a time that long. And of course, your Mac would have to be awake at that time.

BlueM avatar Sep 27 '23 20:09 BlueM