Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
jobs - Display status of jobs in current session<br />
Synopsis<br />
Description<br />
Options<br />
Operands<br />
Exit status<br />
Related information<br />
Examples<br />
jobs [ -ln ][ job ... ]<br />
You can use jobs to display information about active jobs started by <strong>qsh</strong>. For each<br />
job, <strong>qsh</strong> displays:<br />
v Job number in brackets ([ ]).<br />
v Status (Running, Done, Terminated, etc.).<br />
v Return value of the job in parenthesis () when the return value is greater than<br />
zero and the job status is Done.<br />
v Command line for the job.<br />
v -l Display status for each process in the specified job.<br />
v -n Display status only for those jobs whose status has changed but has not been<br />
reported yet.<br />
Each job specifies an active job. The job can be specified as a:<br />
v Number to refer to a process id.<br />
v %number to refer to a job number.<br />
v %string to refer to a job whose name begins with string.<br />
If job is not specified, <strong>qsh</strong> displays status for all active jobs.<br />
v 0 when successful.<br />
v >0 when unsuccessful.<br />
v “kill - Terminate or signal processes”<br />
v “wait - Wait for process completion”<br />
1. Display status for job number 1: jobs %1<br />
2. Display status for process id 16107: jobs 16107<br />
3. Display status for a job running the ls utility: jobs %ls<br />
4. Display status for all active jobs: jobs<br />
[ Legal | AS/400 Glossary ]<br />
Chapter 4. Utilities 87