Advanced Shell Script Programming for Business Continuity and Data Center Automation: Part 1: The Template by Dana French

Advanced Shell Script Programming for Business Continuity and Data Center Automation: Part 1: The Template by Dana French

Author:Dana French
Language: eng
Format: azw3, epub
Publisher: Dana French
Published: 2017-01-02T08:00:00+00:00


Fortunately there is already a shell script function in the Advanced Function library to upload files to a MediaWiki Server. The function name is “wikiAutoLoad_zbksh” and the full source code of this function is contained in Appendix F. This script has numerous options which will be discussed here. These options include:

Function: wikiAutoLoad_zbksh Version: 2.0

Multi-Shell Functions - Sort Function

Automatically upload files as page content to a Wiki Server.

Usage: wikiAutoLoad_zbksh [-?vVfzxDE] [-u WikiUserName] [-p WikiUserPassword]

[-a URL] [-t PageTitle] [-c CookieDir] [-o OutputDir]

[-C Category:...] [-e FileExension:...]

FileNamesToUpload...

Where:

-u = WikiUser Login name (Default: WikiSysop)

-p = WikiUser Password (Default: administrator)

-a = Wiki API URL (Default: http://127.0.0.1/wiki/api.php )

-t = Page Title (only valid for single file upload) (Default: NULL)

-c = Directory for storage of HTTP cookies (Default: .)

-o = Directory for storage of output files (Default: .)

-C = WikiCategories to assign to each uploaded page (Default: Upload)

-z = Preview Mode, show steps but do not upload anything (Default: FALSE)

-e = Delete matching file extension from upload files

use remaining FileName suffix as the PageTitle

-f = Insert Preformatted tags around file content (Default: FALSE)

-x = Convert imbedded HTTP control characters to URL hex codes

-D = Generate Documentation

-E = Execute Examples in Usagemsg

-v = Verbose mode - displays wikiAutoLoad function info

-V = Very Verbose Mode - debug output displayed

-? = Help - display this message



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.