Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM Qshell Interpreter (qsh) - FTP Directory Listing - IBM
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
- Page 76 and 77: Description Options 60 Qshell Inter
- Page 78 and 79: Environment Variables Exit Status R
- Page 80 and 81: Options Exit Status Related Informa
- Page 82 and 83: Operands Exit Status Examples 66 Qs
- Page 84 and 85: Related Information v cd - Change w
- Page 86 and 87: Description Options Exit Status Rel
- Page 88 and 89: Exit Status Examples v 0 on success
- Page 90 and 91: Related Information print - Write o
- Page 92 and 93: Options Operands Exit status None.
- Page 94 and 95: Description Actions Options 78 Qshe
- Page 96 and 97: Exit Status Examples Notes 80 Qshel
- Page 98 and 99: For more information about the java
- Page 100 and 101: jar - Archive Java files Ignored op
- Page 102 and 103: Description Options Operands Exit s
- Page 104 and 105: kill - Terminate or signal processe
- Page 106 and 107: Exit status Examples v 0 when succe
- Page 108 and 109: wait - Wait for process completion
- Page 110 and 111: Description Options Operands Exit s
- Page 112 and 113: Options Operands Exit status Relate
- Page 114 and 115: unset - Unset values of variables a
- Page 116 and 117: Exit status v 0 when successful. [
- Page 118 and 119: Description Operands Exit Status Ex
- Page 120 and 121: true - Return true value Synopsis D
- Page 122 and 123: Exit Status Examples 106 Qshell Int
- Page 124 and 125: expr 10 = 10 [ Legal | AS/400 Gloss
- Page 128 and 129: Exit Status 112 Qshell Interpreter
- Page 130 and 131: Error Conditions Related Informatio
- Page 132 and 133: Authorities Return Value Error Cond
- Page 134 and 135: 118 Qshell Interpreter (qsh)
- Page 136 and 137: 120 Qshell Interpreter (qsh) #inclu
- Page 138 and 139: 122 Qshell Interpreter (qsh) while
- Page 140 and 141: 124 Qshell Interpreter (qsh) #pragm
- Page 142 and 143: 126 Qshell Interpreter (qsh) /* 4.
- Page 144 and 145: 128 Qshell Interpreter (qsh) int c;
- Page 146 and 147: 130 Qshell Interpreter (qsh) } /* G
- Page 148 and 149: 132 Qshell Interpreter (qsh) char *
- Page 150 and 151: USER(QSHSVR) AUT(*USE) GRTOBJAUT OB
- Page 152: Printed in U.S.A.
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