114
Example: Running applications from an x86 shell
This example shows how to run an application named TradeOffice. It normally runs on a Linux on
x86 machine on a network. TradeOffice monitors a designated remote file system, processes files
from the file system, and sends files to another remote file system.
In a POWER shell, enter the following command:
runx86
The runx86 command reates a VxE and starts an x86 shell from the native shell.
In the translated x86 shell, enter the following command:
TradeOffice
This starts the TradeOffice application from the x86 shell.
For applications that must be run “on demand,” it is best to run x86 applications from a native
POWER shell
Running x86 applications from a native POWER shell
Applications can be started directly from a native POWER shell by passing them to the runx86
command as a parameter. The path to the executable must be a subpath relative to the x86World root
(for example, /bin/ls). Arguments are passed directly to the x86 application, so any paths that are
passed as arguments should be subpaths below the x86World root (for example, /tmp rather than
X86WORLD_ROOT/tmp).
This method has the advantage that it can be set up as a script that an end user runs. The end users
do not need to know that they are running the application in a VxE on a POWER machine.
Running applications directly from a native POWER shell
This example translates the x86World /bin/ls binary, and lists the contents of the directory.
You must enter the command from a directory that is visible from x86World. See “PowerVM Lx86
installation reference” on page 31 in the PowerVM Lx86 for x86 Linux Applications Administration
Guide for a list of directories that are automatically visible from x86World. For example, you can run
the following command from a POWER shell:
runx86 /bin/ls /tmp
This command creates a VxE, translates the ls command, shows the results of the ls command, and
then closes the VxE.
Note: x86 applications cannot be run directly from a POWER shell without invoking the runx86
command.
Komentarze do niniejszej Instrukcji