You can add a pulldown menu to both the Jobs window and the Machines window.
To add a pulldown menu to the Jobs window, in the Xloadl file:
For more information, refer to the comments in the Xloadl file.
To add a pulldown menu to the Machines window, in the Xloadl file:
Suppose you want to create a new menu bar item containing a selection which executes the ping command against a machine you select on the Machines window.
Figure 34. Creating a New Pulldown Menu
*userMachinePulldown: True *userMachine.labelString: Commands *userMachine_Option1: True *userMachine_Option1_command: ping -c1 *userMachine_Option1.labelString: ping *userMachine_Option1_parameter: True *userMachine_Option1_output: Window |
The Xloadl definitions shown in the Figure 34 create a menu bar item called "Commands". The first item in the Commands pulldown menu is called "ping". When you select this item, the command ping -c1 is executed, with the machine you selected on the Machines window passed to this command. Your output is displayed in an informational window.
For more information, refer to the comments in the Xloadl file.