Web Functions
urlMatchesLocalFileSize
Compare a remote file size with a local file size
Usage
urlMatchesLocalFileSize [ --help ] url file
Compare a remote file size with a local file size
Arguments
--help- Optional. Flag. Display this help.url- Required. URL. URL to check.file- Required. File. File to compare.
Return codes
0- Success1- Environment error2- Argument error
urlContentLength
Get the size of a remote URL
Usage
urlContentLength [ --help ] [ --handler handler ] url
Get the size of a remote URL
Arguments
--help- Optional. Flag. Display this help.--handler handler- Optional. Function. Use this error handler instead of the default error handler.url- Required. URL. URL to fetch the Content-Length.
Return codes
0- Success1- Environment error2- Argument error
networkIPList
List IPv4 Addresses associated with this system using
ifconfig
Usage
networkIPList [ --install ] [ --help ]
List IPv4 Addresses associated with this system using ifconfig
Arguments
--install- Flag. Optional. Install any packages required to getifconfiginstalled first.--help- Flag. Optional. This help.
Sample Output
lines:IPv4
Return codes
0- Success1- Environment error2- Argument error
hostTTFB
Fetch Time to First Byte and other stats
Usage
hostTTFB [ --help ] url
Fetch Time to First Byte and other stats
Arguments
--help- Optional. Flag. Display this help.url- URL. Required. URL to check.
Return codes
0- Success1- Environment error2- Argument error
websiteScrape
Scrape a website.
Usage
websiteScrape [ --help ] url
Scrape a website.
Untested, and in progress. Do not use seriously.
Uses wget to fetch a site, convert it to HTML nad rewrite it for local consumption.
Site is stored in a directory called host for the URL requested.
This is not final yet and may not work properly.
Arguments
--help- Optional. Flag. Display this help.url- URL. Required. Url to scrape recursively.
Return codes
0- Success1- Environment error2- Argument error