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.

wait - Wait for process completion<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

Exit status<br />

wait [ job ... ]<br />

You can use wait to wait for the specified job(s) to end. If job is not specified, <strong>qsh</strong><br />

waits for all child processes to end.<br />

None.<br />

Related information<br />

Examples<br />

Each job specifies an active job. The job can be specified as a:<br />

v Number to refer to a process id. <strong>qsh</strong> waits for the given process to end.<br />

v %number to refer to a job number. <strong>qsh</strong> waits for all processes in the job to end.<br />

v %string to refer to a job whose name begins with string. <strong>qsh</strong> waits for all<br />

processes in the job to end.<br />

Exit status of the last job to end.<br />

v “jobs - Display status of jobs in current session”<br />

v “kill - Terminate or signal processes”<br />

1. Wait for process id 16825 to end: wait 16825<br />

2. Wait for job number 5 to end: wait %5<br />

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

Utilities for working with parameters and variables<br />

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

The following are <strong>Qshell</strong> utilities for working with parameters and variables:<br />

v export - Set export attribute for variables<br />

v local - Assign a local variable in a function<br />

v readonly - Set read-only attribute for variables<br />

v set - Set or unset options and positional parameters<br />

v shift - Shift positional parameters<br />

v unset - Unset values of variables and functions<br />

[ Legal | AS/400 Glossary ]

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

Saved successfully!

Ooh no, something went wrong!