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:
A
i: the pull-down menu name to be removed from the menu barB
i: 0 (zero)C
i: 0 (zero)D
i: 0 (zero)
For example, remove the `Calendar
' pull-down menu from the menu bar:
xlsbatch*customizedMenu:"Calendar 0 0 0"
A
i: the pull-down menu name where some item will be removedB
i: the menu item name to be removedC
i: 0 (zero)D
i: 0 (zero)
For example, remove the `Restart...
' menu item from the `Job
' pull-down menu:
xlsbatch*customizedMenu:"Job Restart... 0 0"
A
i: the pull-down menu where some sub-pull-down will be removedB
i: the sub-pull-down menu name to be removedC
i: 0 (zero)D
i: 0 (zero)
For example, remove the `View
' sub-pull-down menu from the `Job
' pull-down menu:
xlsbatch*customizedMenu:"Job View 0 0"
A
i: the pull-down menu where the sub-pull-down menu residesB
i: the sub-pull-down menu name where some item will be removedC
i: the menu item name to be removedD
i: 0 (zero)
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"
A
i: new menu name to be addedB
i: 0 (zero)C
i: 0 (zero)D
i: same as A
i
For example, add the `Others
' menu item in the menu bar:
xlsbatch*customizedMenu:"Others 0 0 Others"
A
i: the pull-down menu name where the new item will be addedB
i: new menu item name to be addedC
i: 0 (zero)D
i: executable name which will be executed when this item is chosen
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)"
A
i: the pull-down menu name where the sub-pull-down menu residesB
i: the sub-pull-down menu name where the new item will be addedC
i: new menu item name to be addedD
i: executable name which will be executed when this item is chosen
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"
A
i: the pull-down menu name where some item's command will be replacedB
i: the menu item name whose command will be replacedC
i: 0D
i: executable name which will be executed when the item specified in B
i is chosen
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"
A
i: the pull-down menu name where the sub-pull-down menu residesB
i: the sub-pull-down menu name where some item's command will be replacedC
i: the menu item name whose command will be replacedD
i: executable name which will be executed when the item specified in C
i is chosen
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.