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

📄 postio.1

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 1
字号:
.TH POSTIO 1 "DWB 3.2".SH NAME.B postio\- serial interface for PostScript printers.SH SYNOPSIS\*(mBpostio\f1.OP \-l line.OP "" options [].OP "" files [].SH DESCRIPTION.B postiosends.I filesto the PostScript printer attached to.IR line .If no.I filesare specified the standard input is sent.The first group of.I optionsshould be sufficient for most applications:.TP 0.75i.OP \-b speedTransmit data over.I lineat baud rate.I speed.Recognized baud rates are 1200, 2400, 4800, 9600, and 19200.The default.I speedis 9600 baud..TP.OP \-cDo not send.MR ^C s(interrupts) to the printer,which means.B postiodoes not force a busy printer into the idle state..TP.OP \-l lineConnect to printer attached to.IR line .In most cases there is no default and.B postiomust be able to read and write.IR line .If.I linedoes not begin with.MW /it is treated as a Datakit destination..TP.OP \-qPrevents status queries while.I filesare being sent to the printer.When status queries are disabled a dummy message is appendedto the log file before each block is transmitted..TP.OP \-B numSet internal buffer size for reading and writing.I filesto.I numbytes(default is 2048 bytes)..TP.OP \-DEnable debug mode.Guarantees that everything read on.I linewill be added to the log file (standard error by default)..TP.OP \-L fileData received on.I linegets put in.IR file .The default log.I fileis standard error.Printer or status messages that do not indicate a change in stateare not normally written to.I filebut can be forced out using the.OP \-Doption..TP.OP \-P stringSend.I stringto the printer before any of the input files.The default.I stringis simple PostScript code that disables timeouts..TP.OP \-R numRun.B postioas a single process if.I numis 1 or as separate read and write processes if.I numis 2.By default.B postioruns as a single process..PPThe next two.I optionsare provided for users who expect to run.B postioon their own.Neither is suitable for use in spooler interfaceprograms:.TP 0.35i.OP \-iRun the program in interactive mode.Any.I filesare sent first and followed by the standard input.Forces separate read and write processesand overrides many other options.To exit interactive mode use your interrupt or quit character.To get a friendly interactive connection with the printer type.MW executiveon a line by itself..TP.OP \-tData received on.I lineand not recognized as printer or status information is written tothe standard output.Forces separate read and write processes.Convenient if you have a PostScript program thatwill be returning useful data to the host..PPThe last option is not generally recommended and should onlybe used if all else fails to provide a reliable connection:.TP 0.35i.OP \-SSlow the transmission of data to the printer.Severely limits throughput, runs as a single process,disables the.OP \-qoption, limits the internal buffer size to 1024 bytes,can use an excessive amount of.SM CPUtime, and does nothing in interactive mode..PPBest performance is usually obtained by usinga large internal buffer.OP -B "" ) (and by running the program as separate read and write processes.OP \-R2 "" ). (Inability to fork the additional process causes.B postioto continue as a single read/write process.When one process is used, only data sent to the printer is flow-controlled..PPThe options are not all mutually exclusive.The.OP \-ioption always wins, selecting its own settings for whatever isneeded to run interactive mode, independent of anything elsefound on the command line.Interactive mode runs as separate read and write processesand few of the other.I optionsaccomplish anything in the presence of the.OP \-ioption.The.OP \-toption needs a reliable two way connection to the printer andtherefore tries to force separate read and write processes.The.OP \-Soption relies on the status query mechanism, so.OP \-qis disabled and the program runs as a single process..PPIn most cases.B postiostarts by making a connection to.I lineand then attempts to force the printer into the.SM IDLEstate by sending an appropriate sequence of.MW ^T(status query), .MW ^C(interrupt), and.MW ^D(end of job) characters.When the printer goes.SM IDLE.I filesare transmitted along with an occasional.MW ^T(unless the.OP \-qoption was used).After all the.I filesare sent the program waits until it is reasonably sure thejob is complete.Printer generated error messages received at any timeexcept while establishing the initial connection(or when running interactive mode) cause.B postioto exit with a non-zero status.In addition to being added to the log file, printer error messagesare also echoed to standard error..SH EXAMPLESRun as a single process at 9600 baud and send.I file1and.I file2to the printer attached to.MR /dev/tty01 :.EXpostio -l /dev/tty01  \f2file1  file2.EESame as above except two processes are used,the internal buffer is set to 4096 bytes,and data returned by the printer gets put in file.MR log :.EXpostio -R2 -B4096 -l/dev/tty01 -Llog  \f2file1  file2.EEEstablish an interactive connection with the printer at Datakitdestination.MR my/printer :.EXpostio -i -l my/printer.EESend file.MW programto the printer connected to.MR /dev/tty22 ,recover any data in file.MR results ,and put log messages in file.MR log :.EXpostio -t -l /dev/tty22 -L log program >results.EE.SH DIAGNOSTICSA 0 exit status is returned if the files ran successfully.System errors (e.g., ``can't open the line'') set the low orderbit in the exit status, while PostScript errors set bit 1.An exit status of 2 usually means the printerdetected a PostScript error in the input.IR files ..SH WARNINGS.PPThe input.I filesare handled as a single PostScript job.Sending several different jobs, each with their own internalend of job mark.RM ( ^D )is not guaranteed to work properly..B postiomay quit before all the jobs have completed and could be restartedbefore the last one finishes..PPAll the capabilities described above may not be available on everymachine or even across the different versions of.SM UNIXthat are currently supported by the program.For example, the code needed to connect to a Datakit destination may onlywork on System\ V and may require that the.SM DKHOSTsoftware package be available at compile time..PPThere may be no default.I lineso using.OP \-loption is strongly recommended.If omitted.B postiomay attempt to connect to the printer using the standard output.If Datakit is involved the.OP \-bmay be ineffective and attempts by.B postioto flow control data in both directions may not work.The.OP \-qoption can help if the printer is connected to \s-1RADIAN\s+1.The.OP \-Soption is not generally recommended and should only be used ifall else fails to establish a reliable connection..SH SEE ALSO.BR buildtables (1),.BR dpost (1),.BR postdaisy (1),.BR postdmd (1),.BR postmd (1),.BR postprint (1),.BR postreverse (1),.BR posttek (1),.BR printfont (1)

⌨️ 快捷键说明

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