check-ssh-chat icon indicating copy to clipboard operation
check-ssh-chat copied to clipboard

Repeat mode

Open shazow opened this issue 9 years ago • 2 comments

Would be handy if we could specify a --repeat <duration> flag which makes the checker stay logged into the server and keep repeating the DM check every and only exit when it fails.

(Parse duration using http://golang.org/pkg/time/#ParseDuration)

What do you think?

This way I could do...

check-ssh-chat --repeat 10m || pkill -f ssh-chat

shazow avatar Dec 17 '14 23:12 shazow

Sounds like a reasonable feature :+1:

About to head to bed though, so I won’t be able to implement it tonight :)

For now you’ll have to run it as a cron job or similar.

peterhellberg avatar Dec 17 '14 23:12 peterhellberg

Sounds good! If I have time before I leave, I'll send a PR.

shazow avatar Dec 17 '14 23:12 shazow