https://github.com/reflexdemon/scripting
Basic utilities on shell scripting
https://github.com/reflexdemon/scripting
Last synced: about 1 month ago
JSON representation
Basic utilities on shell scripting
- Host: GitHub
- URL: https://github.com/reflexdemon/scripting
- Owner: reflexdemon
- Created: 2013-12-13T15:56:10.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-06-24T14:51:53.000Z (about 6 years ago)
- Last Synced: 2025-02-23T11:41:52.772Z (over 1 year ago)
- Language: Shell
- Size: 1.27 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Basic Scripting Utility
Please use the following command to check if the site existed
```
curl -s https://raw.github.com/reflexdemon/scripting/master/test_url.sh | URL="http://www.google.com" bash
```
##Sample usage
```
$ curl -s https://raw.github.com/reflexdemon/scripting/master/test_url.sh | URL="http://www.google.com" bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13076 0 13076 0 0 25521 0 --:--:-- --:--:-- --:--:-- 25489
Size is 13076 bytes
Test Passed 13K data downloaded.
$ curl -s https://raw.github.com/reflexdemon/scripting/master/test_url.sh | URL="http://www.googleisreallybad.com" bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: www.googleisreallybad.com
Size is 0 bytes
Test Failed.
```