Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM Qshell Interpreter (qsh) - FTP Directory Listing - IBM

as400bks.rochester.ibm.com
from as400bks.rochester.ibm.com More from this publisher
29.06.2013 Views

Exit Status Examples -t Mark every line in the log with the specified tag. v 0 on success v >0 if an error occurs. 1. Send the file “test.output.log” to the system log. logger -f test.output.log 2. Send a message to the system log and standard error, and include a tag. logger -s -t 'Tag your are it' My message is simple [ Legal | AS/400 Glossary ] logname - Display user’s login name Synopsis Description Exit Status logname Related Information The logname utility writes the user’s login name to standard output followed by a newline. The logname utility explicitly ignores the LOGNAME and USER environment variables because the environment cannot be trusted. v 0 on success v >0 if an error occurs v id - Return user identity [ Legal | AS/400 Glossary ] tee - Duplicate standard input Synopsis Description 110 Qshell Interpreter (qsh) tee [-ai] [file ...] The tee utility copies standard input to standard output, making a copy in zero or more files. The output is unbuffered.

Options Exit Status Related Information Examples The tee utility takes the default action for all signals, except when the -i option is specified. -a Append the output to the files rather than overwriting them. -i Ignore the SIGINT signal. v 0 on success v >0 if an error occurs v echo - Write arguments to standard output 1. Save the output of a command into three different files. grep 'off_set=' code/*.java | tee file1 file2 file3 > logfile 2. Make a working and backup copy of the file, “back9”. cat back9 | tee pro.tees pro.tees.bak [ Legal | AS/400 Glossary ] uname - Return system name Synopsis Description Options uname [-anrsv] The uname utility writes the name of the operating system implementation to standard output. When options are specified, strings representing one or more system characteristics are written to standard output. If the -a flag is specified, or multiple flags are specified, all output is written on a single line, separated by spaces. -a Behave as though the -n, -r, -s, and -v options were specified. -n Write the name of the system to standard output. -r Write the current release level of the operating system to standard output. -s Write the name of the operating system implementation to standard output. -v Write the version level of this release of the operating system to standard output. Chapter 4. Utilities 111

Options<br />

Exit Status<br />

Related Information<br />

Examples<br />

The tee utility takes the default action for all signals, except when the -i option is<br />

specified.<br />

-a Append the output to the files rather than overwriting them.<br />

-i Ignore the SIGINT signal.<br />

v 0 on success<br />

v >0 if an error occurs<br />

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

1. Save the output of a command into three different files.<br />

grep 'off_set=' code/*.java | tee file1 file2 file3 > logfile<br />

2. Make a working and backup copy of the file, “back9”.<br />

cat back9 | tee pro.tees pro.tees.bak<br />

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

uname - Return system name<br />

Synopsis<br />

Description<br />

Options<br />

uname [-anrsv]<br />

The uname utility writes the name of the operating system implementation to<br />

standard output. When options are specified, strings representing one or more<br />

system characteristics are written to standard output.<br />

If the -a flag is specified, or multiple flags are specified, all output is written on a<br />

single line, separated by spaces.<br />

-a Behave as though the -n, -r, -s, and -v options were specified.<br />

-n Write the name of the system to standard output.<br />

-r Write the current release level of the operating system to standard output.<br />

-s Write the name of the operating system implementation to standard output.<br />

-v Write the version level of this release of the operating system to standard<br />

output.<br />

Chapter 4. Utilities 111

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

Saved successfully!

Ooh no, something went wrong!