⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1114-1115.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Complete Command Reference:File Formats:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=05 //-->

<!-- PAGES=1103-1208 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="1113-1113.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1116-1117.html">Next</A></CENTER></P>







<A NAME="PAGENUM-1114"><P>Page 1114</P></A>





<P>The supported caught signals are as follows:

</P>



<!-- CODE //-->

<PRE>

SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGUSR1, SIGSEGV, SIGUSR2, SIGPIPE, SIGALRM, SIGTERM, SIGCONT,

SIGTSTP, SIGTTIN, SIGTTOU, SIGIO, SIGXCPU, SIGXFSZ, SIGVTALRM, SIGPROF, SIGWINCH

</PRE>

<!-- END CODE //-->



<P><B>

FINGER PROGRAMS FILES SECTION (FILES finger

programs)

</B></P>



<P>These are the programs that are called when a specific action is take on the finger display.

</P>

<P>FINGER is the file that is used when a user listing is requested from your machine. This is used in the standard user list and

in the sorted user list, so it is wise to use the standard here:

/usr/sbin/userlist.

</P>

<P>WHOIS is the program that is used when a WHOIS request is done on a specific user.

</P>



<P><B>

FINGER FAKE USERS FILES SECTION (FILES finger

fakeusers)

</B></P>



<P>These are the ever_popular fake users that you can create on your system. These users are ones that don't exist (and

should not exist, for that matter). These are, instead, treated as normal scripts that can be called for your use.

</P>



<P>The format is as follows for fake users:

</P>



<!-- CODE SNIP //-->

<PRE>

fake_username Script_name SEARCHBOOL script

</PRE>

<!-- END CODE SNIP //-->



<P>fake_username is the name of the fake user you want to request. Make sure that this is a user that does not exist on

your system. Keep in mind that if you create a fake username and that user already exists, the fake username will be shown.

</P>

<P>Script_name is the standard name of your script. This is used in the display of your services listing.

</P>

<P>SEARCHBOOL specifies whether parameters can be sent to that specific fake user. If you decide to use the

SEARCHBOOL option (TRUE in this case), the passed variables are

</P>



<TABLE>



<TR><TD>

$1

</TD><TD>

First passed option

</TD></TR><TR><TD>

$2

</TD><TD>

Second passed option

</TD></TR><TR><TD>

$3

</TD><TD>

Third passed option

</TD></TR><TR><TD>

$4

</TD><TD>

Fourth passed option

</TD></TR></TABLE>







<P>(If more than four options were passed to this, the request will be ignored, and an error message will be returned to the

user who requested the finger request.)

</P>

<P>script is the location of your script. It should be

chmod 700 and readable only by root.

</P>

<P>If you do not specify any fake users, a fake user called

None will be created. This is a fake user that does nothing and calls

/dev/null for the script.

</P>

<P><B>

SERVICES HEADER CONFIGURE SECTION (CONFIG services

header)

</B></P>

<P>This is the display that is given during a services finger. It should be formatted the same way that you want it to display

on the screen.

</P>

<P>When specifying the finger formatted options, you should specify them as C formatted strings as well, with the

standard options. This should always be given last in the display.</P>

</P>

<P>An example of this is

<P>



<!-- CODE SNIP //-->

<PRE>

Welcome to this system's services!

User: Service name: Searchable:

&#151;&#151;_ &#151;&#151;&#151;&#151;&#151;&#151;_ &#151;&#151;&#151;_

%-8s %-20s %-s

</PRE>

<!-- END CODE SNIP //-->



<P>Remember to keep the format string last or a

SIGSEGV will result.

</P>

<P><B>

SERVICES POSITIONS CONFIGURE SECTION (CONFIG services

positions)

</B></P>

<P>This specifies where in the preceding display string that the information from a service listing is to appear. These

numbers can be anywhere between 1 and 3.

</P>







<A NAME="PAGENUM-1115"><P>Page 1115</P></A>





<P>USER specifies the position of the username listing.

</P>

<P>SERVICE specifies the position of the service full_name listing.

</P>

<P>SEARCH specifies the position of the Boolean search display.

</P>

<P><B>

CONTACTING

</B></P>



<P>If you like this program and have questions or comments about the program's functionality or what_have_you, write

to khollis@bitgate.com.

</P>

<P>As always, I appreciate any suggestions or bug reports you might have, so bring them on!

</P>

<P><B>

SEE ALSO

</B></P>

<P>cfingerd(8), cfingerd.text(5), userlist(1),

finger(1), regex(3), regexp(3)

</P>



<P>16 May 1996

</P>



<H3><A NAME="ch05_ 8">

cfingerd text rules

</A></H3>

<P><B>

EXPLANATION

</B></P>



<P>cfingerd offers different commands that can be placed in text files to display corresponding information. Each

command used with cfingerd in text files begins with a dollar sign

($). This usually indicates to cfingerd that when it's displaying a

file, it parses the command directly after that character.

</P>

<P>If you want to display a raw $ sign, simply put two

$ signs together, or $$.

</P>



<P><B>

TEXT COMMANDS

</B></P>



<P>The following is a list of text commands and what they do. Each of the text commands can be in any text case; it

doesn't matter.

</P>





<TABLE>



<TR><TD>

$CENTER

</TD><TD>

Displays the entire contents of the line. This command must start at the beginning of the 

line. This is a very common command.

</TD></TR><TR><TD>

$DATE

</TD><TD>

Displays the current system date in the format of MM/DD/YY.

</TD></TR><TR><TD>

$TIME

</TD><TD>

Displays the current system time in the format HH:MM A/PM (time zone).

</TD></TR><TR><TD>

$IDENT

</TD><TD>

Displays the identity of the current person fingering your system.

</TD></TR><TR><TD>

$COMPILE_DATETIME

</TD><TD>

Displays the date and time of which the current issue of cfingerd was compiled on your 

system.

</TD></TR><TR><TD>

$VERSION

</TD><TD>

Displays the current version of cfingerd.

</TD></TR><TR><TD>

$EXEC

</TD><TD>

Executes a file with x parameters after it. The $EXEC command must be on a line by itself <BR>

in order to function properly. The command is executed as nobody.nogroup.

</TD></TR></TABLE>





<P><B>

SEE ALSO

</B></P>



<P>cfingerd(8), cfingerd.conf(5), finger(1),

userlist(1), any of the included docs with the standard

cfingerd distribution.

</P>



<P>cfingerd 1.2.1, 6 Jan 1996

</P>





<H3><A NAME="ch05_ 9">

control.ctl

</A></H3>



<P>control.ctl&#151;Specify handling of Usenet control messages.

</P>









<P><CENTER>

<a href="1113-1113.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1116-1117.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -