84 lines
1.8 KiB
HTML
84 lines
1.8 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=utf-8">
|
|
<title>logger - Log messages</title>
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</HEAD>
|
|
<body bgcolor="#FFFFFF">
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
|
|
|
|
<h2>logger - Log messages</h2>
|
|
|
|
<strong>Synopsis</strong>
|
|
|
|
<p><strong>logger [-is] [-f</strong> <em>file</em><strong>]
|
|
[-t</strong> <em>tag</em>] [<em>message ...</em>]</p>
|
|
|
|
<p><strong>Description</strong></p>
|
|
|
|
<p>The <strong>logger</strong> utility provides a shell command
|
|
interface for writing messages to the QHST system log. If <em>
|
|
message</em> is not specified, and the <strong>-f</strong> flag is
|
|
not provided, standard input is logged.</p>
|
|
|
|
<p><strong>Options</strong></p>
|
|
|
|
<dl>
|
|
<dt><strong>-i</strong></dt>
|
|
|
|
<dd>Log the process id of the <strong>logger</strong> process with
|
|
each line.</dd>
|
|
|
|
<dt><strong>-s</strong></dt>
|
|
|
|
<dd>Log the <em>message</em> to standard error, as well as the
|
|
system log.</dd>
|
|
|
|
<dt><strong>-f</strong></dt>
|
|
|
|
<dd>Log the specified <em>file</em>.</dd>
|
|
|
|
<dt><strong>-t</strong></dt>
|
|
|
|
<dd>Mark every line in the log with the specified <em>
|
|
tag</em>.</dd>
|
|
</dl>
|
|
|
|
<p><strong>Exit Status</strong></p>
|
|
|
|
<ul>
|
|
<li>0 on success</li>
|
|
|
|
<li>>0 if an error occurs.</li>
|
|
</ul>
|
|
|
|
<strong>Examples</strong>
|
|
|
|
<ol>
|
|
<li>Send the file "test.output.log" to the system log.
|
|
|
|
<pre>
|
|
logger -f test.output.log
|
|
</pre>
|
|
</li>
|
|
|
|
<li>Send a message to the system log and standard error, and
|
|
include a tag.
|
|
|
|
<pre>
|
|
logger -s -t 'Tag your are it' My message is simple
|
|
</pre>
|
|
</li>
|
|
</ol>
|
|
|
|
<!-- end ibmbody========================================================= -->
|
|
</body>
|
|
</html>
|
|
|