Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM Qshell Interpreter (qsh) - FTP Directory Listing - IBM

as400bks.rochester.ibm.com
from as400bks.rochester.ibm.com More from this publisher
29.06.2013 Views

4 Qshell Interpreter (qsh)

Chapter 2. Using qsh Starting Qshell STRQSH - Start QSH Before starting qsh, see the following topics for important information about working with the Qshell Interpreter: v Starting Qshell v Customizing your environment v Editing files v National language support (NLS) considerations v Performance considerations v Developing your own utilities v Differences between Qshell and other interpreters [ Legal | AS/400 Glossary ] Purpose The Start QSH (STRQSH) command, also known as QSH, is a CL (control language) command that starts the qsh shell interpreter. If run in an interactive job, STRQSH starts an interactive shell session. If a shell session is not already active in the job, then: 1. A new shell session is started and a terminal window is displayed. 2. qsh runs the commands from the file /etc/profile if it exists. 3. qsh runs the commands from the file .profile in the user’s home directory if it exists. 4. qsh runs the commands from the file specified by the expansion of the ENV variable if it exists. If a shell session is already active in an interactive job, you are reconnected to the existing session. From the terminal window, you can enter shell commands and view output from the commands. Using the terminal window The terminal window has two parts: v an input line for entering commands, and v an output area that contains an echo of the commands you entered and any output generated by the commands. You can use these function keys: Function key Description F3 (Exit) Close the terminal window and end the qsh session. F5 (Refresh) Refresh the output area. F6 (Print) Print the output area to a spool file. © Copyright IBM Corp. 1998, 1999 5

Chapter 2. Using <strong>qsh</strong><br />

Starting <strong>Qshell</strong><br />

STRQSH - Start QSH<br />

Before starting <strong>qsh</strong>, see the following topics for important information about working<br />

with the <strong>Qshell</strong> <strong>Interpreter</strong>:<br />

v Starting <strong>Qshell</strong><br />

v Customizing your environment<br />

v Editing files<br />

v National language support (NLS) considerations<br />

v Performance considerations<br />

v Developing your own utilities<br />

v Differences between <strong>Qshell</strong> and other interpreters<br />

[ Legal | AS/400 Glossary ]<br />

Purpose<br />

The Start QSH (STRQSH) command, also known as QSH, is a CL (control<br />

language) command that starts the <strong>qsh</strong> shell interpreter.<br />

If run in an interactive job, STRQSH starts an interactive shell session. If a shell<br />

session is not already active in the job, then:<br />

1. A new shell session is started and a terminal window is displayed.<br />

2. <strong>qsh</strong> runs the commands from the file /etc/profile if it exists.<br />

3. <strong>qsh</strong> runs the commands from the file .profile in the user’s home directory if it<br />

exists.<br />

4. <strong>qsh</strong> runs the commands from the file specified by the expansion of the ENV<br />

variable if it exists.<br />

If a shell session is already active in an interactive job, you are reconnected to the<br />

existing session. From the terminal window, you can enter shell commands and<br />

view output from the commands.<br />

Using the terminal window<br />

The terminal window has two parts:<br />

v an input line for entering commands, and<br />

v an output area that contains an echo of the commands you entered and any<br />

output generated by the commands.<br />

You can use these function keys:<br />

Function key Description<br />

F3 (Exit) Close the terminal window and end the <strong>qsh</strong><br />

session.<br />

F5 (Refresh) Refresh the output area.<br />

F6 (Print) Print the output area to a spool file.<br />

© Copyright <strong>IBM</strong> Corp. 1998, 1999 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!