Skip to content

Simple bash script for checking if IP changes between executions

Notifications You must be signed in to change notification settings

jasonmit/on-ip-change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

on-ip-change

If the script detects this is the first time being run, or that the IP changed since last run, the script will eval's any commands you pass in as arguments. Otherwise, results in a noop.

Use

source on-ip-change.sh mail -s "$HOST IP changed to $IP" email@addr.com

About

Simple bash script for checking if IP changes between executions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages