If you have iSeries access for web you can already do this, and it can be called from another web program
 
 

Command

The Command tab contains support for running batch level iSeries commands, searching for CL commands on the iSeries, and running previously saved commands. Interactive commands can be prompted and run, but their usefulness is limited since only success or failure will be shown. If *PRINT is specified for the output, you can run an interactive command and view the spooled file output using the iSeries Access for Web Print function.

For information on customizing the Command function, see Command.

For a list of restrictions associated with the Command function, see Command.

Search commands

You can search for a specific command using the following methods:

  • By command name.
  • By command text description.

Command prompt

If an incomplete command is specified, the Command function supports prompting the command to help a user complete the command they wish to run.

The command prompt accepts the following:

  • A command name.
  • A partially completed command line.
  • A complete command line.

In the case of a partially completed command line, the command prompting code will take specified parameter values from the command line and show them in the command prompt page.

Parameter help

In addition to the basic prompting function, the command prompter page also displays help for individual parameters of a command. The following icon appears next to parameters that have help available for them: Select the icon and a new browser window will appear with help for the specified parameter. If the help window is kept open, and help is selected for another parameter of the same command, the "help" window will show help for the newly specified parameter. If help is selected for a different command, a new help window will be opened.

Adding additional values

Parameters allowing more than one value are also supported. Parameters that support more than one value have the following icon by them: If more values are required, click on the icon and a page will display to allow more values to be entered. From this page you can save the new values entered, or cancel and return to the previous page.

Run command

Select the Run command button or the Submit batch job button to run the command. You can select the following output types for the completion status message:

  • Browser

    You can send the completion status message to your browser.

  • Mail

    You can e-mail the completion status message to your e-mail address.

  • Folder

    You can save the completion status message to your personal folder.

Note:
If you send the completion status message as an e-mail attachment or personal folder item, control is returned to your browser window. This allows you to submit additional Run command requests or perform a different function without having to wait for the command to complete.

The command function allows you to run a new command, or to select a previously run command from the previous commands list. You can control the size of this list using the Customization function.

Previously run commands

Commands run previously in the current browser session are displayed in a list on the Run command page. These commands are only accessible from the current browser session, and are not saved fro reuse. You may Run, Prompt, Retrieve, or Remove a previously run command.

The Retrieve option will load the command string into the command entry field, allowing minor command modifications to be performed without having to reprompt the entire command.

The Remove option will remove the command from the previously run command's list. The Remove option does not remove the underlying CL command from the server. The Remove option may be desirable if you run a command containing sensitive or confidential information.

Saved commands

A Save link on a previously run command allows you to name and save a command for later use. The user who saved the command can access the saved command from any browser session. You can also overwrite an existing named command with a new command. You must run a command before you save it to ensure the command is valid. Access saved commands through the My Commands tab item. The list of saved commands contains the following information about each command:

  • Name
  • Command
  • Output
  • Action
  • Last access
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]On Behalf Of Mike Haston ** Data
Sent: Friday, January 20, 2006 9:50 AM
To: [email protected]
Subject: [Easy400Group] Command line processor via CGIDEV2


I'm not even sure what I'm asking for, but I have it in my head that I'd
like to be able to run a command line from a browser.  Has anyone played
around with something like this or is it way out there, too much work
and not worth it?

Thanks.
######################################################################

NOTICE:
The contents of this e-mail and any attachments to it may contain
privileged and confidential information from Jones Apparel Group, Inc.
or its affiliates.  This information is only for the viewing or use
of the intended recipient.  If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution or
use of, or the taking of any action in reliance upon, the information
contained in this e-mail, or any of the attachments to this e-mail,
is strictly prohibited.  If you have received this e-mail in error,
please immediately notify the sender by replying to this message and
delete it from your system.

######################################################################
.


SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer How to format your computer How to format computer


YAHOO! GROUPS LINKS




Reply via email to