Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM Qshell Interpreter (qsh) - FTP Directory Listing - IBM
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
- Page 1: Qshell Interpreter (qsh)
- Page 4 and 5: © Copyright International Business
- Page 6 and 7: iv Qshell Interpreter (qsh) if cond
- Page 8 and 9: vi Qshell Interpreter (qsh) Options
- Page 10 and 11: viii Qshell Interpreter (qsh) Synop
- Page 12 and 13: x Qshell Interpreter (qsh) Options
- Page 14 and 15: xii Qshell Interpreter (qsh) Synops
- Page 16 and 17: xiv Qshell Interpreter (qsh) Error
- Page 18 and 19: 2 Qshell Interpreter (qsh) v Added
- Page 22 and 23: Function key Description F7 (Up) Ro
- Page 24 and 25: CCSIDs supported by qsh 00273 00273
- Page 26 and 27: 10 Qshell Interpreter (qsh) - The f
- Page 28 and 29: Parameters Positional parameters Sp
- Page 30 and 31: Variables used by qsh 14 Qshell Int
- Page 32 and 33: Word expansions Tilde expansion Par
- Page 34 and 35: $(command) or by using backquotes:
- Page 36 and 37: 20 Qshell Interpreter (qsh) Arithme
- Page 38 and 39: Here-documents Using commands [ n ]
- Page 40 and 41: Lists Asynchronous lists Sequential
- Page 42 and 43: then list4 ] ... [ else list5 ] cas
- Page 44 and 45: 28 Qshell Interpreter (qsh) [ Legal
- Page 46 and 47: Utilities for defining aliases The
- Page 48 and 49: command - Run a simple command Syno
- Page 50 and 51: Options Operands Exit Status - Invo
- Page 52 and 53: Options Operands Exit status None.
- Page 54 and 55: Operands Exit Status Related inform
- Page 56 and 57: Related Information Examples [] Mat
- Page 58 and 59: Operands Exit Status Related Inform
- Page 60 and 61: Exit Status Related Information Exa
- Page 62 and 63: Exit status Related information qsh
- Page 64 and 65: 48 Qshell Interpreter (qsh) 0010 ex
- Page 66 and 67: Options Operands Exit Status Relate
- Page 68 and 69: Related Information Examples v ln -
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