29.06.2013 Views

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10 <strong>Qshell</strong> <strong>Interpreter</strong> (<strong>qsh</strong>)<br />

– The fg or bg built-in utilities.<br />

– Using the Suspend key (typically z) to send the SIGTSTP signal to the<br />

foreground process group.<br />

– Using the Stop key (typically s) to send the SIGSTOP signal to the<br />

foreground process group.<br />

– Using the Restart key (typically q) to send the SIGCONT signal to the<br />

foreground process group.<br />

– Using the Interrupt key (typically c) to send the SIGINT signal to the<br />

foreground process group. As an alternative, you can use SysReq 2 from an<br />

interactive shell session to send the SIGINT signal to the shell interpreter<br />

process and any currently running child processes.<br />

v There is no support for the End-of-file key (typically d). As an alternative,<br />

use a here-document (page 21) to redirect text entered at the command line to<br />

standard input of a utility.<br />

v The file /dev/null is not a “bit-bucket” but a regular file. Many scripts redirect<br />

output to /dev/null when it is not necessary to save the output. A script that uses<br />

this technique does not need to be changed but the /dev/null file can grow very<br />

large and should be periodically removed. <strong>qsh</strong> uses the file /dev/<strong>qsh</strong>-stdin-null to<br />

redirect standard input to a zero-length file.<br />

v The verbose option is ignored when the stdin option is not set.<br />

v When calling a command, you can pass a maximum of 255 parameters to the<br />

command.<br />

v When using path name expansion with some case insensitive file systems, you<br />

must use upper case characters in the pattern. For example, to list all of the<br />

program objects in the QSHELL library you should use this command:<br />

ls /qsys.lib/<strong>qsh</strong>ell.lib/*.PGM.<br />

[ Legal | AS/400 Glossary ]

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

Saved successfully!

Ooh no, something went wrong!