亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 110.htm

?? 嘗試使用有意義的結構與組織
?? HTM
?? 第 1 頁 / 共 2 頁
字號:
:lp=/dev/lp1:\ <br>
:sd=/var/spool/lpd/lp:\ <br>
:af=/var/spool/lpd/lp/acct:\ <br>
:mx#0:\ <br>
:if=/usr/bin/smbprint: <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
請確定 spool 和 accounting{帳號} 的目錄存在且可寫入.
請確信某行有適當的路徑指到 smbprint script (在下面會給)
而且確定適當的設備被指到 ( /dev 下某個檔). <br>
<br>
下個是 smbprint script 本身. 它通常被擺在 /usr/bin 而且是因為 Andrew
Tridgell 的緣故,而據我所知是他創造了 Samba. 它隨附在 Samba source
發行套件, 但在某些 binary 發行套件并沒有, 所以在這我再造一個. <br>
<br>
你可以希望仔細地看這個.
有某些較小的修改已經證明它們是很有用的. <br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
#!/bin/sh -x <br>
<br>
# This script is an input filter for printcap printing on a unix machine. It <br>
# uses the smbclient program to print the file to the specified smb-based <br>
# server and service. <br>
# For example you could have a printcap entry like this <br>
# <br>
# smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint <br>
# <br>
# which would create a unix printer called &quot;smb&quot; that will print via this <br>
# script. You will need to create the spool directory /usr/spool/smb with <br>
# appropriate permissions and ownerships for your system. <br>
<br>
# Set these to the server and service you wish to print to <br>
# In this example I have a WfWg PC called &quot;lapland&quot; that has a printer <br>
# exported called &quot;printer&quot; with no password. <br>
<br>
# <br>
# Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton) <br>
# so that the server, service, and password can be read from <br>
# a /usr/var/spool/lpd/PRINTNAME/.config file. <br>
# <br>
# In order for this to work the /etc/printcap entry must include an <br>
# accounting file (af=...): <br>
# <br>
# cdcolour:\ <br>
# :cm=CD IBM Colorjet on 6th:\ <br>
# :sd=/var/spool/lpd/cdcolour:\ <br>
# :af=/var/spool/lpd/cdcolour/acct:\ <br>
# :if=/usr/local/etc/smbprint:\ <br>
# :mx=0:\ <br>
# :lp=/dev/null: <br>
# <br>
# The /usr/var/spool/lpd/PRINTNAME/.config file should contain: <br>
# server=PC_SERVER <br>
# service=PR_SHARENAME <br>
# password=&quot;password&quot; <br>
# <br>
# E.g. <br>
# server=PAULS_PC <br>
# service=CJET_371 <br>
# password=&quot;&quot; <br>
<br>
# <br>
# Debugging log file, change to /dev/null if you like. <br>
# <br>
logfile=/tmp/smb-print.log <br>
# logfile=/dev/null <br>
<br>
<br>
# <br>
# The last parameter to the filter is the accounting file name. <br>
# <br>
spool_dir=/var/spool/lpd/lp <br>
config_file=$spool_dir/.config <br>
<br>
# Should read the following variables set in the config file: <br>
# server <br>
# service <br>
# password <br>
# user <br>
eval `cat $config_file` <br>
<br>
# <br>
# Some debugging help, change the &gt;&gt; to &gt; if you want to same space. <br>
# <br>
echo &quot;server $server, service $service&quot; &gt;&gt; $logfile <br>
<br>
( <br>
# NOTE You may wish to add the line `echo translate' if you want automatic <br>
# CR/LF translation when printing. <br>
echo translate <br>
echo &quot;print -&quot; <br>
cat <br>
) | /usr/bin/smbclient &quot;\\\\$server\\$service&quot; $password -U $user -N -P &gt;&gt;
$logfile <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
大部分 linux 發行套件隨附 nenscript 其用來轉換 ASCII 文件成 Postscript.
以下 perl script 經由 smbprint 使更容易提供一種簡單介面給 linux 的列印.
<br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
Usage: print [-a|c|p] &lt;filename&gt; <br>
-a prints &lt;filename&gt; as ASCII <br>
-c prints &lt;filename&gt; formatted as source code <br>
-p prints &lt;filename&gt; as Postscript <br>
If no switch is given, print attempts to <br>
guess the file type and print appropriately. <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
使用 smbprint 來列印 ASCII 檔案便於截斷過長的行. 如果可能的話,這個
script 截斷長行於空白鍵處(取代在字的中間). <br>
<br>
格式化過的原始碼是被 nenscript 處理過. 它處理 ASCII
檔而且用個特選的標頭(像 date,filename等)格式化成兩欄.
它也可計算行數. 使用這當作例子, 其他格式型態可以達成的. <br>
<br>
Postscript 文件已經適當地格式化了,所以它們直接通過. <br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
#!/usr/bin/perl <br>
<br>
# Script: print <br>
# Authors: Brad Marshall, David Wood <br>
# Plugged In Communications <br>
# Date: 960808 <br>
# <br>
# Script to print to oreilly which is currently on zimmerman <br>
# Purpose: Takes files of various types as arguments and <br>
# processes them appropriately for piping to a Samba print script. <br>
# <br>
# Currently supported file types: <br>
# <br>
# ASCII - ensures that lines longer than $line_length characters wrap on <br>
# whitespace. <br>
# Postscript - Takes no action. <br>
# Code - Formats in Postscript (using nenscript) to display <br>
# properly (landscape, font, etc). <br>
# <br>
<br>
# Set the maximum allowable length for each line of ASCII text. <br>
$line_length = 76; <br>
<br>
# Set the path and name of the Samba print script <br>
$print_prog = &quot;/usr/bin/smbprint&quot;; <br>
<br>
# Set the path and name to nenscript (the ASCII--&gt;Postscript converter) <br>
$nenscript = &quot;/usr/bin/nenscript&quot;; <br>
<br>
unless ( -f $print_prog ) { <br>
die &quot;Can't find $print_prog!&quot;; <br>
} <br>
unless ( -f $nenscript ) { <br>
die &quot;Can't find $nenscript!&quot;; <br>
} <br>
<br>
&amp;ParseCmdLine(@ARGV); <br>
<br>
# DBG <br>
print &quot;filetype is $filetype\n&quot;; <br>
<br>
if ($filetype eq &quot;ASCII&quot;) { <br>
&amp;wrap($line_length); <br>
} elsif ($filetype eq &quot;code&quot;) { <br>
&amp;codeformat; <br>
} elsif ($filetype eq &quot;ps&quot;) { <br>
&amp;createarray; <br>
} else { <br>
print &quot;Sorry..no known file type.\n&quot;; <br>
exit 0; <br>
} <br>
# Pipe the array to smbprint <br>
open(PRINTER, &quot;|$print_prog&quot;) || die &quot;Can't open $print_prog: $!\n&quot;; <br>
foreach $line (@newlines) { <br>
print PRINTER $line; <br>
} <br>
# Send an extra linefeed in case a file has an incomplete last line. <br>
print PRINTER &quot;\n&quot;; <br>
close(PRINTER); <br>
print &quot;Completed\n&quot;; <br>
exit 0; <br>
<br>
# --------------------------------------------------- # <br>
# Everything below here is a subroutine # <br>
# --------------------------------------------------- # <br>
<br>
sub ParseCmdLine { <br>
# Parses the command line, finding out what file type the file is <br>
<br>
# Gets $arg and $file to be the arguments (if the exists) <br>
# and the filename <br>
if ($#_ &lt; 0) { <br>
&amp;usage; <br>
} <br>
# DBG <br>
# foreach $element (@_) { <br>
# print &quot;*$element* \n&quot;; <br>
# } <br>
<br>
$arg = shift(@_); <br>
if ($arg =~ /\-./) { <br>
$cmd = $arg; <br>
# DBG <br>
# print &quot;\$cmd found.\n&quot;; <br>
<br>
$file = shift(@_); <br>
} else { <br>
$file = $arg; <br>
} <br>
<br>
# Defining the file type <br>
unless ($cmd) { <br>
# We have no arguments <br>
<br>
if ($file =~ /\.ps$/) { <br>
$filetype = &quot;ps&quot;; <br>
} elsif ($file =~ /\.java$|\.c$|\.h$|\.pl$|\.sh$|\.csh$|\.m4$|\.inc$|\.html$|\.htm$/) { <br>
$filetype = &quot;code&quot;; <br>
} else { <br>
$filetype = &quot;ASCII&quot;; <br>
} <br>
<br>
# Process $file for what type is it and return $filetype <br>
} else { <br>
# We have what type it is in $arg <br>
if ($cmd =~ /^-p$/) { <br>
$filetype = &quot;ps&quot;; <br>
} elsif ($cmd =~ /^-c$/) { <br>
$filetype = &quot;code&quot;; <br>
} elsif ($cmd =~ /^-a$/) { <br>
$filetype = &quot;ASCII&quot; <br>
} <br>
} <br>
} <br>
<br>
sub usage { <br>
print &quot; <br>
Usage: print [-a|c|p] &lt;filename&gt; <br>
-a prints &lt;filename&gt; as ASCII <br>
-c prints &lt;filename&gt; formatted as source code <br>
-p prints &lt;filename&gt; as Postscript <br>
If no switch is given, print attempts to <br>
guess the file type and print appropriately.\n <br>
&quot;; <br>
exit(0); <br>
} <br>
<br>
sub wrap { <br>
# Create an array of file lines, where each line is &lt; the <br>
# number of characters specified, and wrapped only on whitespace <br>
<br>
# Get the number of characters to limit the line to. <br>
$limit = pop(@_); <br>
<br>
# DBG <br>
#print &quot;Entering subroutine wrap\n&quot;; <br>
#print &quot;The line length limit is $limit\n&quot;; <br>
<br>
# Read in the file, parse and put into an array. <br>
open(FILE, &quot;&lt;$file&quot;) || die &quot;Can't open $file: $!\n&quot;; <br>
while(&lt;FILE&gt;) { <br>
$line = $_; <br>
<br>
# DBG <br>
#print &quot;The line is:\n$line\n&quot;; <br>
<br>
# Wrap the line if it is over the limit. <br>
while ( length($line) &gt; $limit ) { <br>
<br>
# DBG <br>
#print &quot;Wrapping...&quot;; <br>
<br>
# Get the first $limit +1 characters. <br>
$part = substr($line,0,$limit +1); <br>
<br>
# DBG <br>
#print &quot;The partial line is:\n$part\n&quot;; <br>
<br>
# Check to see if the last character is a space. <br>
$last_char = substr($part,-1, 1); <br>
if ( &quot; &quot; eq $last_char ) { <br>
# If it is, print the rest. <br>
<br>
# DBG <br>
#print &quot;The last character was a space\n&quot;; <br>
<br>
substr($line,0,$limit + 1) = &quot;&quot;; <br>
substr($part,-1,1) = &quot;&quot;; <br>
push(@newlines,&quot;$part\n&quot;); <br>
} else { <br>
# If it is not, find the last space in the <br>
# sub-line and print up to there. <br>
<br>
# DBG <br>
#print &quot;The last character was not a space\n&quot;; <br>
<br>
# Remove the character past $limit <br>
substr($part,-1,1) = &quot;&quot;; <br>
# Reverse the line to make it easy to find <br>
# the last space. <br>
$revpart = reverse($part); <br>
$index = index($revpart,&quot; &quot;); <br>
if ( $index &gt; 0 ) { <br>
substr($line,0,$limit-$index) = &quot;&quot;; <br>
push(@newlines,substr($part,0,$limit-$index) <br>
. &quot;\n&quot;); <br>
} else { <br>
# There was no space in the line, so <br>
# print it up to $limit. <br>
substr($line,0,$limit) = &quot;&quot;; <br>
push(@newlines,substr($part,0,$limit) <br>
. &quot;\n&quot;); <br>
} <br>
} <br>
} <br>
push(@newlines,$line); <br>
} <br>
close(FILE); <br>
} <br>
<br>
sub codeformat { <br>
# Call subroutine wrap then filter through nenscript <br>
&amp;wrap($line_length); <br>
<br>
# Pipe the results through nenscript to create a Postscript <br>
# file that adheres to some decent format for printing <br>
# source code (landscape, Courier font, line numbers). <br>
# Print this to a temporary file first. <br>
$tmpfile = &quot;/tmp/nenscript$$&quot;; <br>
open(FILE, &quot;|$nenscript -2G -i$file -N -p$tmpfile -r&quot;) || <br>
die &quot;Can't open nenscript: $!\n&quot;; <br>
foreach $line (@newlines) { <br>
print FILE $line; <br>
} <br>
close(FILE); <br>
<br>
# Read the temporary file back into an array so it can be <br>
# passed to the Samba print script. <br>
@newlines = (&quot;&quot;); <br>
open(FILE, &quot;&lt;$tmpfile&quot;) || die &quot;Can't open $file: $!\n&quot;; <br>
while(&lt;FILE&gt;) { <br>
push(@newlines,$_); <br>
} <br>
close(FILE); <br>
system(&quot;rm $tmpfile&quot;); <br>
} <br>
<br>
sub createarray { <br>
# Create the array for postscript <br>
open(FILE, &quot;&lt;$file&quot;) || die &quot;Can't open $file: $!\n&quot;; <br>
while(&lt;FILE&gt;) { <br>
push(@newlines,$_); <br>
} <br>
close(FILE); <br>
} <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
10. 版權 <br>
1996 年的 HOWTO 版權是屬於 David Wood.
它可以用任何型式的再重覆產生以及自由的散播,只要這個檔原封不動,包含這段敘述.</p>
<BR>
<hr color="#EE9B73" size="1" width="94%">

</TD>
<TD CLASS="tt3" VALIGN="bottom" width="8%"  bgcolor="#e0e0e0"><strong><A HREF="111.htm">后一頁</A><BR>
<A HREF="109.htm">前一頁</A><BR>

<A HREF="index.html">回目錄</A><BR>
<A HREF="../../../../index.htm">回首頁</A><BR>
</strong>
</TD>
</TR>
</table>
</BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品理论片a级大结局| 欧亚洲嫩模精品一区三区| 精品久久五月天| 九九久久精品视频| 日本一区二区三区视频视频| 99vv1com这只有精品| 亚洲一区二区三区小说| 91精品国产综合久久久久| 久久福利资源站| 国产精品网友自拍| 欧美色图12p| 国内成人精品2018免费看| 国产女人水真多18毛片18精品视频| 成人app在线| 午夜天堂影视香蕉久久| 精品国产乱码久久久久久久 | 日韩国产在线观看| 欧美成人精精品一区二区频| 成人午夜激情在线| 亚洲成人av中文| 国产喂奶挤奶一区二区三区 | 欧美综合色免费| 蜜臀av性久久久久av蜜臀妖精 | 国产精品欧美久久久久无广告| 91小宝寻花一区二区三区| 午夜精品国产更新| 国产欧美一区在线| 欧美精品亚洲一区二区在线播放| 国产在线看一区| 亚洲成人综合网站| 日本一区免费视频| 日韩欧美国产一二三区| 99re视频精品| 精品一区二区三区免费观看| 亚洲裸体xxx| 久久女同精品一区二区| 欧美在线你懂的| 国产传媒欧美日韩成人| 亚洲chinese男男1069| 中文字幕成人av| 精品日产卡一卡二卡麻豆| 欧美性猛交xxxx乱大交退制版| 国产精品一区二区视频| 日本伊人色综合网| 亚洲精品成人精品456| 久久久久国产精品麻豆ai换脸| 欧美日韩亚洲综合在线| 成人三级在线视频| 国产资源精品在线观看| 日韩二区三区四区| 亚洲一区二区三区四区的| 国产精品久久久久毛片软件| 欧美大度的电影原声| 欧美色网一区二区| 91片在线免费观看| 99国产欧美另类久久久精品| 国产一区二区三区最好精华液| 香蕉影视欧美成人| 一区二区三区精品| 亚洲视频电影在线| 自拍偷自拍亚洲精品播放| 国产欧美日韩中文久久| 欧美xingq一区二区| 91精选在线观看| 欧美精品乱码久久久久久按摩| 日本韩国一区二区三区视频| 成人91在线观看| 成人黄色在线看| 成人小视频在线| 成人免费视频免费观看| 国产91精品免费| 风流少妇一区二区| 成人午夜电影久久影院| 成人动漫av在线| av在线播放一区二区三区| 92精品国产成人观看免费| 成人aa视频在线观看| 91视视频在线观看入口直接观看www | 亚洲精品久久久久久国产精华液| 国产精品全国免费观看高清| 久久久.com| 日韩伦理av电影| 亚洲另类中文字| 亚洲电影视频在线| 日韩二区三区四区| 国产专区欧美精品| 成人福利电影精品一区二区在线观看| 成人黄色777网| 91九色最新地址| 欧美男人的天堂一二区| 欧美一级片在线| 久久精品视频在线免费观看 | 亚洲黄色尤物视频| 亚洲一区视频在线| 蓝色福利精品导航| 成人中文字幕在线| 在线精品视频一区二区三四| 欧美日韩dvd在线观看| 欧美大肚乱孕交hd孕妇| 中文字幕精品一区二区三区精品| 综合婷婷亚洲小说| 日本成人在线网站| 福利91精品一区二区三区| 色综合激情五月| 日韩欧美二区三区| **网站欧美大片在线观看| 亚洲mv在线观看| 国产精品一二三四五| 在线观看日韩国产| 精品国产一区二区三区四区四| 国产欧美日本一区二区三区| 亚洲精品欧美激情| 老司机免费视频一区二区三区| 成人精品国产一区二区4080| 欧美日韩中字一区| 久久精品一区蜜桃臀影院| 亚洲天堂福利av| 国产在线精品国自产拍免费| 色婷婷av一区二区三区软件| 欧美r级在线观看| 亚洲综合激情网| 国产电影一区在线| 欧美精品亚洲一区二区在线播放| 国产亚洲精品7777| 日韩高清国产一区在线| 成人黄色软件下载| 日韩精品一区二区三区swag| 亚洲婷婷国产精品电影人久久| 久色婷婷小香蕉久久| 91老师片黄在线观看| 精品sm在线观看| 香蕉av福利精品导航| 不卡免费追剧大全电视剧网站| 日韩欧美亚洲国产精品字幕久久久 | 亚洲资源在线观看| 国产91精品欧美| 精品久久久久久久人人人人传媒 | 中文字幕一区av| 国产一区在线精品| 日韩欧美中文字幕制服| 一区二区三区91| 99久久精品国产精品久久| 久久久亚洲精华液精华液精华液| 亚洲成人av福利| 在线观看欧美黄色| 亚洲最大成人网4388xx| 粉嫩av一区二区三区粉嫩| 精品毛片乱码1区2区3区| 午夜精品一区二区三区三上悠亚 | 国产精品一区二区三区四区| 欧美一区二区视频在线观看| 亚洲国产精品久久艾草纯爱| 97精品国产97久久久久久久久久久久 | 成人精品一区二区三区中文字幕| 欧美日韩在线亚洲一区蜜芽| 亚洲丝袜制服诱惑| 不卡大黄网站免费看| 日本一区二区三区久久久久久久久不| 久久99国产精品久久99果冻传媒| 91麻豆精品国产自产在线| 天天色图综合网| 7777精品伊人久久久大香线蕉完整版 | 激情图片小说一区| 日韩午夜在线播放| 免费成人在线观看视频| 91精品国产黑色紧身裤美女| 天天操天天色综合| 欧美一卡二卡三卡四卡| 久久福利资源站| 久久精品欧美日韩精品| 国产99久久久国产精品免费看| 国产欧美精品在线观看| 成人少妇影院yyyy| 亚洲欧美国产77777| 日本电影欧美片| 亚洲国产欧美日韩另类综合| 精品视频999| 99久久99久久久精品齐齐| 亚洲色图欧洲色图| 欧美丝袜第三区| 免费观看在线色综合| 精品国产第一区二区三区观看体验 | 精品国产乱码久久久久久闺蜜| 国产美女久久久久| 亚洲色图清纯唯美| 欧美另类高清zo欧美| 美日韩一区二区| 欧美高清在线一区| 91国偷自产一区二区三区成为亚洲经典| 亚洲一区二区三区四区的| 日韩欧美的一区| av电影一区二区| 午夜免费久久看| 久久久久久久久久久久电影 | 婷婷六月综合亚洲| 久久嫩草精品久久久精品| a4yy欧美一区二区三区| 婷婷丁香激情综合| 欧美国产一区二区在线观看| 在线看日韩精品电影|