Updated readme

This commit is contained in:
Shihaam Abdul Rahman 2021-10-28 16:16:57 +05:00 committed by GitHub
parent ed1dc2f8ef
commit b47543d5aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,16 +14,17 @@ chmod +x telegram-ping-ip.sh screen-telegram-ping-ip.sh
cp env.sample .env cp env.sample .env
``` ```
- Edit the contents of .env to your config (`nano .env`) - Edit the contents of .env to your config (`nano .env`)
### Execute the script ## Running
### Execute the script - Forground
```bash ```bash
./telegram-ping-ip.sh ./telegram-ping-ip.sh - Background
``` ```
### Run the script in a screen ### Run the script in a screen
```bash ```bash
./screen-telegram-ping-ip.sh ./screen-telegram-ping-ip.sh
``` ```
### Automatically run the script on system boot up ### Run at system boot up
* Add it to a crontab `crontab -e` * Add it to a crontab, Run: `crontab -e`
``` ```
@reboot /bin/bash /path/to/telegram-ping-ip/screen-telegram-ping-ip.sh @reboot /bin/bash /path/to/telegram-ping-ip/screen-telegram-ping-ip.sh
``` ```