The POSIX 1003.2 standard is implemented on MPE/iX as the
MPE/iX Shell and Utilities (commonly referred to as the
MPE/iX shell or the shell). The MPE/iX shell
is a user workspace that provides a set of commands and
utilities in a UNIX®-like environment on MPE/iX. The
MPE/iX shell is provided with the MPE/iX operating system.
Refer to the MPE/iX Shell and Utilities Reference Manual
(36431-90001) for complete information about all of the
shell commands provided by the MPE/iX shell.
The MPE/iX shell is provided in addition to the MPE/iX
command interpreter, not as a replacement for it. You have
the option of using either the shell or the MPE command
interpreter (or both) to do your work. You can invoke the shell from the CI by typing SH (the system-provided UDCs must be activated) or by executing SH.HPBIN.SYS -L. The UDC puts you into your login group and runs the shell. You can use shell commands at this point. Type exit to exit the shell and return to the CI.
Table 2-8 lists some tasks and associated MPE/iX shell commands that may be of interest to you. MPE commands, utilities, or features that are comparable to the shell commands are also listed. Not all of the shell commands operate in the same way as the MPE command or feature; some are rough equivalents.
Table 2-8 Selected MPE/iX Shell Commands
Task | Shell Command | Comparable MPE/iX Feature |
---|
Shorten command names using an alias | alias, scripts | command files or UDCs |
Change working area | cd | CHDIR |
Copy files | cp | COPY, FCOPY |
Display all or part of text files | cat, more,
tail | PRINT |
Determine disk usage | du | DISKUSE |
Search for text patterns in a file | grep, egrep,
fgrep | Search commands in text editors |
Terminate a process or job that's running | kill | ABORTJOB, ABORT |
Rename files | mv | RENAME |
Display current working directory | pwd | SHOWVAR HPCWD |
Delete files | rm | PURGE |
Delete directories | rmdir | PURGEDIR |
Sort information | sort | Sort/Merge utility |
Edit text or program files | vi, ed, ex | EDIT/3000 |
Display a list of who's logged on the system | who | SHOWJOB, SHOWPROC |