The present invention is directed to the construction of scripts such as start scripts for a server.
The present invention consists of interpreting tags and information in an XML document to produce a server start script for an operating system, the XML document includes tags which are defined to indicate information such that the XML document can be used to produce server start scripts for multiple types of operating systems; and storing the produced server start script in memory.
In one embodiment of the present invention, tags and information in an eXtensible Markup Language (XML) document 102 are interpreted to produce a server start script, such as scripts 104, 106 and 108, for an operating system. The XML document 102 includes tags which are defined to indicate information so that the XML document can be used to produce server start scripts for multiple types of operating systems. Examples of XML tags and constructed script formats of one example is given below in the Script Generator Specification section. The produced server start script, such as scripts 104, 106, and 108, can be stored in memory.
The server start scripts can include UNIX® shell scripts 104, WINDOWS™ command files 106 and other operating system scripts 108. A graphical user interface 110 can be used to produce the XML document. Details of a graphical user interface of one embodiment are described below with respect to
The XML document 102 can be merged with an extension XML document to produce a merged XML document from which the script is produced. The extension XML document can include tags defined for merging XML documents. Such tags can include marker tags, append tags and replace tags.
An Application Programming Interface (API) can be used to create the scripts and/or XML documents. The API allows users to design software that allows for the construction of the scripts and/or XML files.
In one embodiment, the graphical interface 110 is used to produce an intermediate representation, such as XML document 102. The intermediate representation can be such that it can be used to produce server start scripts 104, 106, and 108 for multiple types of operating systems. The intermediate representation can be stored in memory.
The graphical user interface can allow the dragging and dropping of elements for the construction of the XML document. The graphical user interface can include selectable elements for the construction of the XML documents. The selectable elements can be selectable from a menu of the graphical user interface. The graphical user interface can allow the selection of the script for the correct operating system.
The construction of scripts from the XML can be automated by defining the XML tag structure (i.e., e.g., the document type definition DTD or XML schema) such that the XML document is sufficient to produce each type of script desired to be produced. In the script generator specification example given below, the XML document structure is such that both a WINDOWS™ command file script and a UNIX® shell script can be produced. The tags are used to identify information that can be plugged into the scripts automatically.
For example as shown below in the script generator specification example, XML for the IF-THEN statements can look as follows:
The <if> and </if> tags indicate the whole if-then section. The <test> and </test> tags indicates the test to be done. The type is a variable to indicate the type of test. The <then> and </then> tags indicate the command or commands to execute if the test is true; and the <else> and </else> tags indicate the command or commands to execute if the test is true.
For example, if the type is string, not is false, and the case is false, script for checking if one string equals another string is given by:
if “string1”==“string2” command [else expression]
for a WINDOWS™ command file; and
if [“string1”=“string2”] then; else;
for a UNIX® shell script Where “string1” is obtained from “op1” and “string2” is obtained from “op2”.
The script generator specification example below is merely one non-limiting example of a specification of the script generator. A number of different representations for the XML can also be used as long as the desired types of constructed scripts can be produced.
Script Generator Specification Example
One embodiment includes a computer program product which is a storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the features presented herein. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, micro drive, and magneto-optical disks, ROMs, Rams, EPROM's, EPROM's, Drams, Rams, flash memory devices, magnetic or optical cards, Nan systems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Stored on any one of the computer readable medium (media), the present invention includes software for controlling both the hardware of the general purpose/specialized computer or microprocessor, and for enabling the computer or microprocessor to interact with a human user or other mechanism utilizing the results of the present invention. Such software may include, but is not limited to, device drivers, operating systems, execution environments/containers, and user applications.
The foregoing description of preferred embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to one of ordinary skill in the relevant arts. For example, steps performed in the embodiments of the invention disclosed can be performed in alternate orders, certain steps can be omitted, and additional steps can be added. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.
This application claims priority to U.S. Provisional Application No. 60/573,270 entitled “Method to Generate Scripts from XML”, filed May 21, 2004.
Number | Name | Date | Kind |
---|---|---|---|
5812843 | Yamazaki et al. | Sep 1998 | A |
6507856 | Chen et al. | Jan 2003 | B1 |
6681386 | Amin et al. | Jan 2004 | B1 |
6714219 | Lindhorst et al. | Mar 2004 | B2 |
6724409 | Maddocks et al. | Apr 2004 | B1 |
6981212 | Claussen et al. | Dec 2005 | B1 |
6996781 | Myers et al. | Feb 2006 | B1 |
7013331 | Das | Mar 2006 | B2 |
7055350 | Bonnain et al. | Jun 2006 | B2 |
7146380 | Schaepe et al. | Dec 2006 | B2 |
7260777 | Fitzsimons et al. | Aug 2007 | B2 |
7272822 | Riggins et al. | Sep 2007 | B1 |
7376676 | Blea et al. | May 2008 | B2 |
7441228 | Otto et al. | Oct 2008 | B2 |
20030212797 | Kuroda | Nov 2003 | A1 |
20040015782 | Day et al. | Jan 2004 | A1 |
20040054610 | Amstutz et al. | Mar 2004 | A1 |
20040138970 | Ramachandran et al. | Jul 2004 | A1 |
20040205562 | Rozek et al. | Oct 2004 | A1 |
20040243277 | Bonnain et al. | Dec 2004 | A1 |
20060004827 | Stuart | Jan 2006 | A1 |
20060036715 | Ghattu | Feb 2006 | A1 |
20060136761 | Frasier et al. | Jun 2006 | A1 |
20060218512 | Arslan et al. | Sep 2006 | A1 |
20060253742 | Elenburg et al. | Nov 2006 | A1 |
20070122017 | Binnig et al. | May 2007 | A1 |
20070220039 | Waldman et al. | Sep 2007 | A1 |
20080021861 | Fitzsimons et al. | Jan 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20050262476 A1 | Nov 2005 | US |
Number | Date | Country | |
---|---|---|---|
60573270 | May 2004 | US |