Skip to content

Instantly share code, notes, and snippets.

@n3s7or
n3s7or / test_port.sh
Last active February 5, 2021 18:13
Simple bash script to check if a port is opened, and alert over Telegram if it is not.
#!/bin/bash
delay=10
app=$0
usage() {
printf "$app -h HOST -p PORT -i ID -t TOKEN
-i ID : 'chat_id' to send notification to
-t TOKEN : bot TOKEN to send notification from