-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
# bash-get-ip-hostname | ||
Gets external IP address or hostname | ||
|
||
## Add execute permission and run | ||
On Linux, add execute permission: | ||
|
||
``` | ||
chmod +x get-ip.sh | ||
``` | ||
|
||
Then, run script: | ||
``` | ||
./get-ip.sh | ||
``` | ||
|
||
## Change logfile path and rotate logs | ||
Remember to update the log file path (or comment out), and rotate the log as data is appended to the file. | ||
|
||
### View on website | ||
Visit my website at [www.jinet.us] for more info. |