Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add cronjob functionality #16

Open
tr3kl0v opened this issue Feb 19, 2021 · 0 comments
Open

feat: Add cronjob functionality #16

tr3kl0v opened this issue Feb 19, 2021 · 0 comments

Comments

@tr3kl0v
Copy link
Owner

tr3kl0v commented Feb 19, 2021

Find a way to enable and disable in an automatic way

#!/bin/bash
while :;
do
clear
echo "Saoron goes to sleep"
printf '1\n' | ./stop-sauron.sh
echo "Saouron will rise in 55 minutes"
sleep 3300
printf '2\n' | ./stop-sauron.sh
echo "Saoron is awake"
sleep 300
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant