[Contents] [Index] [Top] [Bottom] [Prev] [Next]


A. Customizing xlsbatch Menu Items

You can customize the menu items of xlsbatch by specifying customizedMenu resource in the X resource file. With this feature, you can:

The format of the customizedMenu resource is:

xlsbatch*customizedMenu:`A1 B1 C1 D1 A2 B2 C2 B2 ... An Bn Cn Dn'

where the resource value is a character string enclosed in double quotes, whose components are separated by spaces.

From the beginning of the string, each four consecutive components constitute a group that customizes one menu item. Each component is either a character string or several character strings encompassed by parentheses.

The following define the valid syntax for a menu item group:

For example, remove the `Calendar' pull-down menu from the menu bar:

xlsbatch*customizedMenu:"Calendar 0 0 0"

For example, remove the `Restart...' menu item from the `Job' pull-down menu:

xlsbatch*customizedMenu:"Job Restart... 0 0"

For example, remove the `View' sub-pull-down menu from the `Job' pull-down menu:

xlsbatch*customizedMenu:"Job View 0 0"

For example, remove the `Chkpnt...' menu item from the `Manipulate' sub-pull-down menu of the `Job' pull-down menu:

xlsbatch*customizedMenu:"Job Manipulate Chkpnt... 0"

For example, add the `Others' menu item in the menu bar:

xlsbatch*customizedMenu:"Others 0 0 Others"

For example, add the `xlsadmin' menu item in the `File' pull-down menu which runs xlsadmin with gray background:

xlsbatch*customizedMenu:"File xlsadmin 0 (xlsadmin -bg gray)"

For example, add the `My Job View' menu item in the `View' sub-pull-down menu of the `Job' pull-down menu, which runs the myView executable:

xlsbatch*customizedMenu:"Job View (My Job View) myView"

For example, replace the `Submit...' menu item's command in the `Job' pull-down menu by a new myBsub executable:

xlsbatch*customizedMenu:"Job Submit...  0 myBsub"

For example, replace the `Chkpnt...' menu item's command in the `Manipulate' sub-pull-down menu by a new myChkpnt executable:

xlsbatch*customizedMenu:"Job Manipulate Chkpnt... myChkpnt"

xlsbatch puts the jobIDs of those selected in the job list of the Main Window into a group of UNIX environment variables:

JOBID0 JOBID1 ... JOBIDk

Starting with JOBID0, each variable contains at most 200 job IDs separated by spaces, the variable group ends with a null variable.


[Contents] [Index] [Top] [Bottom] [Prev] [Next]


doc@platform.com

Copyright © 1994-1998 Platform Computing Corporation.
All rights reserved.