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

📄 todolist.html

📁 Shall高级编程
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><TITLE>To Do List</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="Advanced Bash-Scripting Guide"HREF="index.html"><LINKREL="PREVIOUS"TITLE="Mirror Sites"HREF="mirrorsites.html"><LINKREL="NEXT"TITLE="Copyright"HREF="copyright.html"><METAHTTP-EQUIV="Content-Style-Type"CONTENT="text/css"><LINKREL="stylesheet"HREF="common/kde-common.css"TYPE="text/css"><METAHTTP-EQUIV="Content-Type"CONTENT="text/html; charset=iso-8859-1"><METAHTTP-EQUIV="Content-Language"CONTENT="en"><LINKREL="stylesheet"HREF="common/kde-localised.css"TYPE="text/css"TITLE="KDE-English"><LINKREL="stylesheet"HREF="common/kde-default.css"TYPE="text/css"TITLE="KDE-Default"></HEAD><BODYCLASS="APPENDIX"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#AA0000"VLINK="#AA0055"ALINK="#AA0000"STYLE="font-family: sans-serif;"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Advanced Bash-Scripting Guide: An in-depth exploration of the art of shell scripting</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="mirrorsites.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="copyright.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="APPENDIX"><H1><ANAME="TODOLIST"></A>Appendix P. To Do List</H1><UL><LI><P>A comprehensive survey of <AHREF="portabilityissues.html#BASHCOMPAT">incompatibilities between Bash and		  the classic Bourne shell</A>.</P></LI><LI><P>Same as above, but for the Korn shell		  (<ICLASS="FIRSTTERM">ksh</I>).</P></LI><LI><P>A primer on CGI programming, using Bash.</P><P>Here's a simple CGI script to get you started.</P><DIVCLASS="EXAMPLE"><HR><ANAME="TESTCGI"></A><P><B>Example P-1. Print the server environment</B></P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="90%"><TR><TD><PRECLASS="PROGRAMLISTING">   1&nbsp;#!/bin/bash   2&nbsp;# May have to change the location for your site.   3&nbsp;# (At the ISP's servers, Bash may not be in the usual place.)   4&nbsp;# Other places: /usr/bin or /usr/local/bin   5&nbsp;# Might even try it without any path in sha-bang.   6&nbsp;   7&nbsp;# test-cgi.sh   8&nbsp;# by Michael Zick   9&nbsp;# Used with permission  10&nbsp;  11&nbsp;  12&nbsp;# Disable filename globbing.  13&nbsp;set -f  14&nbsp;  15&nbsp;# Header tells browser what to expect.  16&nbsp;echo Content-type: text/plain  17&nbsp;echo  18&nbsp;  19&nbsp;echo CGI/1.0 test script report:  20&nbsp;echo  21&nbsp;  22&nbsp;echo environment settings:  23&nbsp;set  24&nbsp;echo  25&nbsp;  26&nbsp;echo whereis bash?  27&nbsp;whereis bash  28&nbsp;echo  29&nbsp;  30&nbsp;  31&nbsp;echo who are we?  32&nbsp;echo ${BASH_VERSINFO[*]}  33&nbsp;echo  34&nbsp;  35&nbsp;echo argc is $#. argv is "$*".  36&nbsp;echo  37&nbsp;  38&nbsp;# CGI/1.0 expected environment variables.  39&nbsp;  40&nbsp;echo SERVER_SOFTWARE = $SERVER_SOFTWARE  41&nbsp;echo SERVER_NAME = $SERVER_NAME  42&nbsp;echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE  43&nbsp;echo SERVER_PROTOCOL = $SERVER_PROTOCOL  44&nbsp;echo SERVER_PORT = $SERVER_PORT  45&nbsp;echo REQUEST_METHOD = $REQUEST_METHOD  46&nbsp;echo HTTP_ACCEPT = "$HTTP_ACCEPT"  47&nbsp;echo PATH_INFO = "$PATH_INFO"  48&nbsp;echo PATH_TRANSLATED = "$PATH_TRANSLATED"  49&nbsp;echo SCRIPT_NAME = "$SCRIPT_NAME"  50&nbsp;echo QUERY_STRING = "$QUERY_STRING"  51&nbsp;echo REMOTE_HOST = $REMOTE_HOST  52&nbsp;echo REMOTE_ADDR = $REMOTE_ADDR  53&nbsp;echo REMOTE_USER = $REMOTE_USER  54&nbsp;echo AUTH_TYPE = $AUTH_TYPE  55&nbsp;echo CONTENT_TYPE = $CONTENT_TYPE  56&nbsp;echo CONTENT_LENGTH = $CONTENT_LENGTH  57&nbsp;  58&nbsp;exit 0  59&nbsp;  60&nbsp;# Here document to give short instructions.  61&nbsp;:&#60;&#60;-'_test_CGI_'  62&nbsp;  63&nbsp;1) Drop this in your http://domain.name/cgi-bin directory.  64&nbsp;2) Then, open http://domain.name/cgi-bin/test-cgi.sh.  65&nbsp;  66&nbsp;_test_CGI_</PRE></TD></TR></TABLE><HR></DIV></LI></UL><P>Any volunteers?</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="mirrorsites.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="index.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="copyright.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Mirror Sites</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top">&nbsp;</TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Copyright</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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