Keep the machine awake by touching the mouse every minute.
Run it as jar (adjust the path):
java -jar ~/Downloads/mouser/Mouser.jar
or with optional stopTime argument (24h time format):
java -jar ~/Downloads/mouser/Mouser.jar 14:28
Could be usefull to add an alias to .zshrc:
alias mouser="java -jar ~/Downloads/mouser/Mouser.jar"
DEPRECATED! Use stopTime argument instead!
To stop it from running at specific time, AT command could be used. Create a simple kill script first:
killmouser.sh:
#!/bin/sh
process=`pgrep -f Mouser.jar`
kill ${process}
Then run AT command, like this:
at 6:08 pm -f killmouser.sh
It will run at specified time (here - 6:08pm) and execute command (killmouser.sh)