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.

Exit status<br />

Examples<br />

– x for execute or search permission.<br />

Otherwise, mask is a three digit octal number that specifies what permissions<br />

should be removed when creating files.<br />

v 0 when successful.<br />

v >0 when mask is invalid.<br />

1. Display the current file creation mask in symbolic form: umask -S<br />

2. Display the current file creation mask: umask<br />

3. Set the file creation mask to remove read permission for others: umask 004<br />

4. Set the file creation mask to remove write permission for group: umask -S g-w<br />

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

Utilities for reading and writing input and output<br />

The following are <strong>Qshell</strong> utilities for reading and writing input and output:<br />

v echo - Write arguments to standard output<br />

v print - Write output<br />

v printf - Write formatted output<br />

v read - Read a line from standard input<br />

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

echo - Write arguments to standard output<br />

Synopsis<br />

Description<br />

Operands<br />

Exit Status<br />

echo [arg ...]<br />

You can use echo to display each arg on standard output separated by a space<br />

character and followed by a newline character.<br />

Each arg is echoed on standard output.<br />

v 0 when successful<br />

v >0 when an error occurs<br />

Chapter 4. Utilities 73

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

Saved successfully!

Ooh no, something went wrong!