JP2003271365A - System for re-inputting print job in spool-full - Google Patents

System for re-inputting print job in spool-full

Info

Publication number
JP2003271365A
JP2003271365A JP2002076505A JP2002076505A JP2003271365A JP 2003271365 A JP2003271365 A JP 2003271365A JP 2002076505 A JP2002076505 A JP 2002076505A JP 2002076505 A JP2002076505 A JP 2002076505A JP 2003271365 A JP2003271365 A JP 2003271365A
Authority
JP
Japan
Prior art keywords
print job
spool
print
area
full
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002076505A
Other languages
Japanese (ja)
Other versions
JP3900981B2 (en
Inventor
Hitoshi Kojima
仁 小島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2002076505A priority Critical patent/JP3900981B2/en
Publication of JP2003271365A publication Critical patent/JP2003271365A/en
Application granted granted Critical
Publication of JP3900981B2 publication Critical patent/JP3900981B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a print job re-inputting system in spool-full by a server for executing processing to receive and store transfer data from a host in a spool, and to store management information in the spool in inputting a print job, for autonomously realizing the input of the print job even when the input of the print job fails due to the spool-full. <P>SOLUTION: This server is provided with a print job inputting part to be started after storing transfer data in a spool area for inputting a print job and a print service part for executing the processing of print by storing the management information of the print job in the spool area. The print service part notices the execution result of the storage processing in the spool area to the print job inputting part, and the print job inputting part receives the execution result, and when it is not successful, stores the parameter information of the print job in another area, and monitors the area, and when the parameter information is stored, re-inputs the print job to the print service part. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はスプールフル時の印
刷ジョブ再投入方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print job re-input system when a spool is full.

【0002】UNIX(登録商標)のようなOS(Opera
ting System) において印刷を行うサーバでプリントサ
ービスを行う際にデータをスプール領域に格納するが,
スプール領域がフル状態になるとプリントの実行に必要
な情報を作成することができなくなってしまい,その解
決が望まれている。
An operating system (Opera) such as UNIX (registered trademark)
data is stored in the spool area when the print service is performed by the server that performs printing in the
When the spool area becomes full, it becomes impossible to create the information required for printing, and there is a need for a solution to that problem.

【0003】[0003]

【従来の技術】UNIXのOSの基本機能として,印刷
を行うためのジョブの管理・制御をする機能の総称して
LPプリントサービスがある。このLPプリントサービ
スの機能の主なものに次の〜のような機能がある。
2. Description of the Related Art As a basic function of a UNIX OS, there is an LP print service as a general term for a function of managing and controlling a job for printing. The main functions of this LP print service are the following functions.

【0004】lp:LPプリントサービスにリクエスト
を送信する機能。
Lp: A function for transmitting a request to the LP print service.

【0005】lpstat:LPプリントサービスの状態に
関する情報を表示する機能。
Lpstat: A function for displaying information about the status of the LP print service.

【0006】lpsched :LPリクエストスケジューラ
(プリンタスケジューラ,LPスプーラ等とも呼ばれ
る)。システムが常駐するプロセスで,lpによって送信
されたリクエストを管理・制御する。
Lpsched: LP request scheduler (also called printer scheduler, LP spooler, etc.) A system-resident process that manages and controls the requests sent by lp.

【0007】このプリントサービスを実行する場合の動
作を図6により説明する。図6は従来例の構成図であ
り,これはスプール領域を有するUNIXサーバとプリ
ンタ装置の構成を備えた印刷システムである。図中,5
0はホスト,51はUNIXのサーバ,52は受信部,
53はOSのジョブ管理の機能であるスプール(Simult
aneous peripheral operaion online)機能を実現するた
めのスプール領域,54は印刷ジョブ投入部,55はL
Pプリントサービス部,56はプリンタ装置である。
The operation for executing this print service will be described with reference to FIG. FIG. 6 is a configuration diagram of a conventional example, which is a printing system including a UNIX server having a spool area and a printer device. 5 in the figure
0 is a host, 51 is a UNIX server, 52 is a receiver,
Reference numeral 53 is a spool (Simult) which is a function of OS job management
A spool area for realizing an aneous peripheral operation online) function, 54 is a print job input section, and 55 is L
The P print service unit 56 is a printer device.

【0008】ホスト50からサーバ51に印刷のコマン
ドが投入され,データが転送されると,受信部52が起
動されて転送データを受信する。受信部52は受信した
転送データをスプール領域53に保存すると共に印刷ジ
ョブ投入部54を起動する。印刷ジョブ投入部54は起
動されるとLPプリントサービス部55に対して印刷ジ
ョブを投入する。なお,「印刷ジョブの投入」という用
語と同じ意味の用語として「リクエストの送信」が使わ
れる場合があるが,この説明では「印刷ジョブの投入」
を使用する。LPプリントサービス部55はこれによ
り,LPプリントサービス部55自身が各々のジョブを
管理・制御するために必要な情報を,転送データと同じ
スプール領域53にファイルとして書き込む動作を行
う。この印刷ジョブを管理・制御するために必要な情報
(以下,印刷ジョブ管理情報という)には,ジョブを印
刷するプリンタ(ジョブの出力先)や,ジョブのタイト
ル,ジョブの入力形式等が含まれる。このLPプリント
サービス部55による印刷ジョブ管理情報の書き込みが
行われると,印刷ジョブが実行可能となる。
When a print command is input from the host 50 to the server 51 and data is transferred, the receiving section 52 is activated to receive the transfer data. The receiving unit 52 saves the received transfer data in the spool area 53 and activates the print job input unit 54. When activated, the print job input unit 54 inputs a print job to the LP print service unit 55. Although "send request" may be used as a term having the same meaning as "submit a print job", in this description, "submit a print job" is used.
To use. Accordingly, the LP print service unit 55 performs an operation of writing information necessary for the LP print service unit 55 itself to manage and control each job as a file in the same spool area 53 as the transfer data. Information necessary for managing and controlling this print job (hereinafter referred to as print job management information) includes a printer (job output destination) for printing the job, a job title, a job input format, and the like. . When the print job management information is written by the LP print service unit 55, the print job can be executed.

【0009】[0009]

【発明が解決しようとする課題】上記LPプリントサー
ビスとスプール領域を有するサーバとプリンタ装置を備
えた従来の印刷システムでは,ホストからサーバに印刷
コマンドを投入してデータ転送が正常に完了すると,ホ
ストからみれば印刷ジョブが投入されたものと見なして
いた。ところが,データの転送が完了した時に,スプー
ル領域がフル(満杯)になった場合,データ転送が正常
に完了しているためホストに対し何ら通知しないが,そ
の後に印刷ジョブ投入部54が起動して印刷ジョブの投
入でLPプリントサービス部55による印刷ジョブ管理
情報を書き込もうとしてもスプール領域53がフル状態
のため,書き込むことができない。この場合,印刷ジョ
ブの投入に失敗したことになるが,ホスト50ではデー
タ転送が完了しているため,印刷ジョブを投入できたも
のと解釈しているため,その後印刷が行われないと,印
刷ジョブが投入できたのに印刷されない状態(何らかの
エラーの発生状態)と判断されてしまう。
In the conventional printing system having the above-mentioned LP print service, the server having the spool area, and the printer apparatus, when the print command is input from the host to the server and the data transfer is normally completed, the host From the viewpoint, it was considered that the print job was submitted. However, when the spool area becomes full (full) when the data transfer is completed, the data transfer is normally completed and no notification is given to the host. However, the print job input unit 54 is activated after that. Even if the LP print service unit 55 tries to write the print job management information by inputting a print job, the spool area 53 cannot be written because it is in a full state. In this case, the submission of the print job has failed, but since the host 50 has completed the data transfer, it interprets that the print job has been submitted, and if the printing is not performed thereafter, the printing is performed. It is determined that the job could be submitted but not printed (a state in which some error occurred).

【0010】この状態は,まだ印刷されていない印刷ジ
ョブを順番に印刷(先行してスプール領域にデータが格
納された印刷ジョブを実行)させてスプール領域53に
空き領域を作るか,印刷を取り止めるために印刷ジョブ
を削除するかによって解除できる。しかし,この状態を
確認してから,再度サーバに対しデータを転送するとい
う動作を実行しなければならない。
In this state, print jobs that have not yet been printed are sequentially printed (the print jobs having data stored in the spool area are executed in advance) to make an empty area in the spool area 53 or to cancel the printing. Therefore, it can be canceled by deleting the print job. However, after confirming this state, the operation of transferring data to the server again must be executed.

【0011】本発明はスプールフルのために印刷ジョブ
の投入に失敗しても,自律的に投入を実現することがで
きるスプールフル時の印刷ジョブ再投入方式を提供する
ことを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a print job re-feeding method at the time of spool full, which can autonomously realize the submission even if the submission of a print job fails due to spool full.

【0012】[0012]

【課題を解決するための手段】図1は本発明の基本構成
図である。図中,1はサーバ,2はホスト,3はプリン
タ装置である。サーバ1内の1aは転送データ受信部,
1bはスプール領域,1cは印刷ジョブ投入部,1dは
プリントサービス部,1eは本発明により設けたスプー
ルフル時に印刷ジョブのパラメタ情報を格納する実行情
報領域,1fは本発明により設けたスプールフル時印刷
ジョブ投入部である。
FIG. 1 is a basic configuration diagram of the present invention. In the figure, 1 is a server, 2 is a host, and 3 is a printer. 1a in the server 1 is a transfer data receiving unit,
1b is a spool area, 1c is a print job input section, 1d is a print service section, 1e is an execution information area for storing parameter information of a print job when the spool is full according to the present invention, and 1f is a spool full when provided according to the present invention. A print job input unit.

【0013】本発明でホスト2からサーバ1に対してデ
ータ転送が実行されると,転送データ受信部1aにより
受信データをスプール領域1bに格納し(図1のa),
印刷ジョブ投入部1cを起動する(図1のb)。印刷ジ
ョブ投入部1cは,転送データ受信部1aからの起動さ
れた条件(印刷コマンド実行のパラメタ)にしたがっ
て,プリントサービス部1dに対してlp(印刷コマン
ド)を実行させて(図1のc),次のプリントサービス
部1dに対し印刷ジョブの投入を行わせる。プリントサ
ービス部1dは印刷ジョブ投入部1cのlp(印刷コマ
ンド)の実行により印刷ジョブを投入する。プリントサ
ービス部1dが印刷ジョブを投入する際の印刷ジョブの
情報は,印刷ジョブの実行を管理・制御するための情報
(LP情報と呼ばれる)であり,スプール領域1bに格
納される(図1のd)。その管理・制御の情報は,後述
するlpパラメタ情報とは異なる。
When data is transferred from the host 2 to the server 1 according to the present invention, the transfer data receiving unit 1a stores the received data in the spool area 1b (a in FIG. 1).
The print job input unit 1c is activated (b in FIG. 1). The print job input unit 1c causes the print service unit 1d to execute lp (print command) in accordance with the conditions (print command execution parameters) activated by the transfer data reception unit 1a (c in FIG. 1). The next print service unit 1d is made to submit a print job. The print service unit 1d inputs a print job by executing lp (print command) of the print job input unit 1c. The print job information when the print service unit 1d submits the print job is information (called LP information) for managing and controlling the execution of the print job, and is stored in the spool area 1b (see FIG. 1). d). The management / control information is different from the lp parameter information described later.

【0014】プリントサービス部1dによる印刷ジョブ
の投入によるスプール領域1bへのLP情報の格納が,
スプールフルのために失敗すると,印刷ジョブ投入部1
cに対して返す実行結果を失敗として表示する(図1の
e)。この実行結果を受けとると,印刷ジョブ投入部1
cは実行情報領域1eに印刷ジョブの実行情報(lpパ
ラメタ情報とも呼ばれる)を格納する(図1のf)。一
方,スプールフル時印刷ジョブ投入部1fは,実行情報
領域1eを監視して(図1のg),そこに実行情報が格
納されると,その情報に従い,印刷(lp)を最初に実
行されたパラメタと全く同じパラメタで再実行する(図
1のh)。この時の印刷(lp)の実行結果が,成功を
表して(図1のi),印刷ジョブが正常に投入去れた場
合,実行情報領域1eから,該当する印刷ジョブに対応
する実行情報(lpパラメタ情報)を削除する。また,
再投入の時にスプールフルのために印刷ジョブ(lp)
が失敗すると,実行情報領域1eの内容はそのまま保持
される。こうして,スプールフル時印刷ジョブ投入部1
fは,全ての実行情報(lpパラメタ情報)が無くなる
まで再投入を試みる。
Storing LP information in the spool area 1b when a print job is submitted by the print service unit 1d
If it fails due to spool full, print job input unit 1
The execution result returned to c is displayed as a failure (e in FIG. 1). Upon receiving this execution result, the print job input unit 1
The c stores the execution information of the print job (also called lp parameter information) in the execution information area 1e (f in FIG. 1). On the other hand, the spool full print job input unit 1f monitors the execution information area 1e (g in FIG. 1), and when the execution information is stored therein, printing (lp) is first executed according to the information. Re-execute using exactly the same parameters as those described above (h in FIG. 1). When the execution result of the printing (lp) at this time indicates success (i in FIG. 1) and the print job is normally submitted, the execution information area 1e displays the execution information (lp) corresponding to the corresponding print job. Parameter information). Also,
Print job (lp) due to spool full when reloading
Fails, the contents of the execution information area 1e are retained as they are. In this way, the spool full print job input unit 1
f attempts to re-enter until all the execution information (lp parameter information) is exhausted.

【0015】この構成により,スプールフル時のために
印刷ジョブの投入に失敗しても,データを失わず,スプ
ール領域に空き領域ができるまで印刷ジョブの再投入を
何度でも試みることができる。
With this configuration, even if the print job fails to be input because the spool is full, data can be lost and the print job can be re-input many times until an empty area is formed in the spool area.

【0016】[0016]

【発明の実施の形態】図2は本発明の実施例の構成を示
す。図中,1,2,3の各符号は上記図1と同じものを
表し,サーバ1内の10〜15は名称が一部異なるがそ
れぞれの機能は図1の1a〜1fに対応し,10は転送
データ受信部,11はスプール領域,12は印刷ジョブ
投入部,13はLPプリントサービス部,14はlp実
行情報領域,15はスプールフル時印刷ジョブ投入部で
ある。また,16はデータをプリンタに最適な形式に変
換し,変換したデータをドライバを経由してプリンタ装
置に送信する処理を行うフィルタ,17はプリント出力
の処理を行うドライバである。
FIG. 2 shows the configuration of an embodiment of the present invention. In the figure, reference numerals 1, 2 and 3 represent the same as in FIG. 1, and 10 to 15 in the server 1 have different names, but their functions correspond to 1a to 1f in FIG. Is a transfer data receiving section, 11 is a spool area, 12 is a print job input section, 13 is an LP print service section, 14 is an lp execution information area, and 15 is a spool full print job input section. Reference numeral 16 is a filter for converting the data into a format most suitable for the printer and transmitting the converted data to the printer device via the driver. Reference numeral 17 is a driver for performing print output processing.

【0017】転送データ受信部10はシステム常駐型の
処理部であり,ホスト2(データを転送する処理部)か
らのデータ転送を待ち,データが転送されると,最初に
データをスプール領域11にスプールする。次に印刷ジ
ョブ投入部12が転送データ受信部10の子プロセスと
して起動され,起動された条件(後述するlp実行で指
定するパラメタと同じ)に従って,LPプリントサービ
ス部13に対してlpを実行することにより印刷ジョブ
を投入する。この時に実行されるlpコマンドの例を以
下に示す。
The transfer data receiving unit 10 is a system-resident type processing unit, waits for data transfer from the host 2 (processing unit for transferring data), and when the data is transferred, the data is first transferred to the spool area 11. Spool. Next, the print job input unit 12 is activated as a child process of the transfer data reception unit 10, and executes lp to the LP print service unit 13 according to the activated condition (same as the parameter specified in lp execution described later). To submit a print job. An example of the lp command executed at this time is shown below.

【0018】/usr/bin/lp -H hold -T SIA -t "JOBNAME
/ JOBNO / DISCNO" -d A -y class=A -y rmfile /var/
opt/FJSVnlp/prtdata/JOBNAME/JOBDATA このコマンドは多数のパラメタで構成され, 以下に概説
する。「/usr/bin/lp 」というパラメタはlpコマンド
を表し,「-H hold 」は印刷ジョブをホール状態で送
信,ホールド解除の指示があるまで他の印刷ジョブを先
に印刷することを表す。「-T SIA」は受信データの入力
形式を表し,LPプリントサービス部はこの入力形式か
ら最適なフィルタを選択する機能を持つ。「 -t "JOBNA
ME / JOBNO / DISCNO"」は印刷ジョブのタイトルを表
し,「-d A 」は出力先のプリンタ名で,予めLPプリ
ントサービス部に登録されたソフト上の仮想プリンタを
示す。実際には仮想プリンタと実機プリンタデバイスと
が(ID等により)1対1で対応付けられる。「-y cla
ss=A」の「-y」パラメタはユーザ定義パラメタであり,
“-y xxxx = yyyy ”または“-y zzzz ”のような形式
でLPプリントサービス部13に登録しておく。このパ
ラメタは出力クラス(ホスト上ではライタ名)を示す。
「-y rmfile 」はジョブを印刷した後にファイルを削除
することを指示するためのパラメタで, 「var/opt/FJSV
nlp ……JOBDATA 」はスプールフル領域に格納された受
信データを表す。
/ Usr / bin / lp -H hold -T SIA -t "JOBNAME
/ JOBNO / DISCNO "-d A -y class = A -y rmfile / var /
opt / FJSVnlp / prtdata / JOBNAME / JOBDATA This command consists of a number of parameters and is outlined below. The parameter "/ usr / bin / lp" indicates the lp command, and "-H hold" indicates that the print job is sent in the hall state and another print job is printed first until the hold release is instructed. “-T SIA” represents the input format of the received data, and the LP print service section has the function of selecting the optimum filter from this input format. "-T" JOBNA
“ME / JOBNO / DISCNO” ”represents the title of the print job, and“ -d A ”is the printer name of the output destination, which is a virtual printer on software registered in advance in the LP print service unit. In reality, the virtual printer and the actual printer device are associated one-to-one (by ID or the like). "-Y cla
The "-y" parameter of "ss = A" is a user-defined parameter,
It is registered in the LP print service unit 13 in a format such as "-y xxxx = yyyy" or "-y zzzz". This parameter indicates the output class (writer name on the host).
"-Y rmfile" is a parameter for instructing to delete the file after printing the job, and "var / opt / FJSV"
nlp ... JOBDATA "represents the received data stored in the spool full area.

【0019】このlpのコマンドの実行結果が,LPプ
リントサービス部13から返ってくるが,その実行結果
の中のlpの終了値が0の場合は正常に印刷ジョブが投
入されたことを表し,lpの終了値が0以外の場合は,
スプールフルのために印刷ジョブ投入に失敗したことを
表す。スプールフルのため印刷ジョブ投入が失敗の場合
は,lp実行情報領域14にlpを実行した際のパラメ
タ情報(以下,lpパラメタ情報と呼ぶ)を格納する。
The execution result of this lp command is returned from the LP print service unit 13. If the end value of lp in the execution result is 0, it means that the print job is normally submitted. If the end value of lp is not 0,
Indicates that the print job submission failed due to spool full. If the print job input fails due to the spool being full, the parameter information (hereinafter referred to as lp parameter information) when lp is executed is stored in the lp execution information area 14.

【0020】上記のlpコマンドの例の場合,lp実行
情報領域14に保存されるパラメタは,「-H hold 」以
下の全てのパラメタである。
In the above example of the lp command, the parameters stored in the lp execution information area 14 are all the parameters under "-H hold".

【0021】また,lpパラメタ情報は次の例に示すよ
うなファイル名で保存される。
Also, the lp parameter information is saved with a file name as shown in the following example.

【0022】「NPSRetryLp プロセス ID.実行時刻」こ
の中の「NPSRetryLp 」は見出しで, 「プロセスID」は
最初に印刷ジョブ投入部が実行された時のプロセスのプ
ロセスIDであり,プロセスIDはUNIXシステムが
各プロセスを管理するための識別子でありユニークな数
値である。このプロセスIDがないと,同時(同じ時
刻)に印刷ジョブ投入部が実行された時,片方のlpパ
ラメタ情報はなくなってしまう。「実行時刻」は,最初
に印刷ジョブ投入部12が実行された時の時刻で,UN
IXシステムはシステムがリセット(サーバマシンの電
源を切断して再投入した場合などを指す)前に保存して
おいたlpパラメタ情報が(上書きされるため)なくな
ってしまう。
"NPSRetryLp process ID. Execution time" In this, "NPSRetryLp" is a heading, "process ID" is the process ID of the process when the print job input section is first executed, and the process ID is the UNIX system. Is a unique numerical value that is an identifier for managing each process. Without this process ID, when the print job input unit is executed at the same time (at the same time), one lp parameter information is lost. “Execution time” is the time when the print job input unit 12 was executed for the first time.
In the IX system, the lp parameter information saved before the system is reset (in the case where the server machine is powered off and then powered on again) is lost (because it is overwritten).

【0023】LPプリントサービス部13はシステム常
駐型の処理部であり,LPプリントサービスの1機能で
あるlpコマンドによって印刷ジョブを投入する。この
投入する際の印刷ジョブの情報は,LP情報としてスプ
ール領域11に格納される。このLP情報は,LPプリ
ントサービス部13が印刷ジョブの管理・制御をするた
めの情報であり,上記印刷ジョブ投入部12で説明した
lpパラメタ情報とは異なる内容を保存する。LP情報
がスプール領域11へ格納されて,印刷ジョブが正常に
投入された場合,LPプリントサービス部13の1機能
であるLPリクエストスケジューラがこの情報を監視
し,順次印刷ジョブをフィルタ16に印刷指示する。L
Pプリント情報が,スプール領域11に格納できない場
合,スプールフルとしてlpを通じて印刷ジョブ投入失
敗を印刷ジョブ投入部12に通知する。
The LP print service unit 13 is a system-resident type processing unit, and submits a print job by the lp command, which is one function of the LP print service. The print job information at the time of input is stored in the spool area 11 as LP information. This LP information is information for the LP print service unit 13 to manage and control the print job, and stores contents different from the lp parameter information described in the print job input unit 12. When the LP information is stored in the spool area 11 and the print job is normally submitted, the LP request scheduler, which is one function of the LP print service unit 13, monitors this information and instructs the filter 16 to sequentially print the print job. To do. L
When the P print information cannot be stored in the spool area 11, the print job input unit 12 is notified of a print job input failure through lp as spool full.

【0024】図3はスプール領域に格納されるLP情報
の例を示す。この中のC,D,F,,H,P,T…の符
号はそれぞれ情報の種類を表す。
FIG. 3 shows an example of LP information stored in the spool area. The symbols C, D, F, H, P, T ... Represent the types of information.

【0025】スプールフルのため印刷ジョブが投入でき
なかった場合,印刷ジョブ投入部12によってlpパラ
メタ情報がlp実行情報領域14に格納される。同時に
このことは,lpパラメタ情報が格納された時,スプー
ルフルのために投入に失敗した印刷ジョブがあることを
示す。
When the print job cannot be input because the spool is full, the print job input unit 12 stores the lp parameter information in the lp execution information area 14. At the same time, this means that when the lp parameter information is stored, there is a print job that has failed in submission due to spool full.

【0026】図4は印刷ジョブ投入部の処理フローであ
る。図4には上記の実例として挙げたlpコマンドの例
について示され,最初にlpを実行し(図4のS1),
実行結果を取得する(同S2)。このlp実行結果は,
子プロセスとして起動された印刷ジョブ投入部12の終
了値を取得することで得られる。この実行結果が正常終
了であるか判別する(図4のS3)。これはlp実行結
果の印刷ジョブ投入部の終了値が0か(正常に終了した
か),否かを判定する。0(正常終了)の場合は処理を
終了するが,0以外(印刷ジョブ投入失敗)の場合は,
先ずプロセスIDを取得する(図4のS4)。このプロ
セスのプロセスIDは,上記したようにUNIXシステ
ムで管理されており,そこに問い合わせることにより取
得できる。次に現在時刻を取得する(同S5)。この時
刻は次のファイル名作成の処理(図4のS6)において
使用され,続いてlpパラメタ情報の作成の処理が行わ
れる(同S7)。この時,上記S1で実行したパラメタ
から,印刷ジョブ投入部12について説明したパラメタ
情報の例のような形式の情報を作成する。更にlpパラ
メタ情報をlp実行情報領域14に保存して(同S
8),終了する。
FIG. 4 is a processing flow of the print job input unit. FIG. 4 shows an example of the lp command given above as an example. First, lp is executed (S1 in FIG. 4),
The execution result is acquired (at step S2). This lp execution result is
It is obtained by acquiring the end value of the print job input unit 12 started as a child process. It is determined whether or not this execution result is a normal end (S3 in FIG. 4). This determines whether or not the end value of the print job input unit of the lp execution result is 0 (normal end). If it is 0 (normal end), the process ends, but if it is other than 0 (print job submission failure),
First, the process ID is acquired (S4 in FIG. 4). The process ID of this process is managed by the UNIX system as described above, and can be acquired by inquiring there. Next, the current time is acquired (at step S5). This time is used in the next file name creation process (S6 in FIG. 4), and then the lp parameter information creation process is performed (S7). At this time, information in the format like the example of the parameter information described for the print job input unit 12 is created from the parameters executed in S1. Further, the lp parameter information is saved in the lp execution information area 14 (see the same S
8), end.

【0027】上記印刷ジョブ投入部の処理フローにおい
てスプールフルによる印刷ジョブ投入失敗時にlp実行
情報領域にlpパラメタ情報が保存されるとスプールフ
ル時印刷ジョブ投入部による監視及び再投入の処理が行
われる。
In the process flow of the print job input section, if the lp parameter information is saved in the lp execution information area when the print job input due to spool full fails, the spool full print job input section performs monitoring and re-input processing. .

【0028】図5はスプールフル時印刷ジョブ投入部の
処理フローである。最初にlp実行情報領域に保存され
たlpパラメタ情報があるか判別し(図5のS1),情
報が無いと後述するS7の処理に移行し,一つでも有る
場合はlpパラメタ情報のうち,実行時刻の最も早いも
のを選ぶ(同S2)。選んだlpパラメタ情報を取得し
て,印刷ジョブ投入部が実行した時と同じパラメタでl
pコマンドを再度実行し(図5のS3),lp実行結果
を取得する(同S4)。この実行結果は上記図4のS2
と同様にして得られる。その実行結果からlpは正常に
終了したか判別し(図5のS5),正常に終了(印刷ジ
ョブ投入が成功)した場合いは該当するlpパラメタ情
報を削除する(同S6)。印刷ジョブ投入が失敗したと
判別された場合及びステップS6の後,スリープ処理を
行う(図5のS7)。このスリープ処理は,スプールフ
ル時印刷ジョブ投入部が常駐型のプロセスで,常に無限
ループするプログラムであるため,必要に応じて処理を
入れるか,いれないか判断して設定すればよい。頻繁に
lpの再実行を試した方が良い場合は,このスリープ処
理を入れない方がよいが,スプールフルという状態は,
他のジョブが印刷されるか,削除されるかしない限り解
除されないので,それほど頻繁に行う必要がない。ま
た,サーバのCPUの負荷を軽減させることを重視する
場合は,このスリープ処理は入れた方が良い。
FIG. 5 is a processing flow of the print job input section at spool full. First, it is determined whether or not there is lp parameter information stored in the lp execution information area (S1 in FIG. 5), and if there is no information, the process proceeds to S7, which will be described later. The one with the earliest execution time is selected (at step S2). Acquire the selected lp parameter information, and use the same parameters as when the print job input unit executed
The p command is executed again (S3 in FIG. 5), and the lp execution result is acquired (S4 of the same). The execution result is S2 in FIG.
It is obtained in the same manner as. Based on the execution result, it is determined whether lp has ended normally (S5 in FIG. 5), and if it has ended normally (successful submission of the print job), the corresponding lp parameter information is deleted (step S6). When it is determined that the print job input has failed and after step S6, sleep processing is performed (S7 in FIG. 5). This sleep process is a process in which the print job input unit at spool full is a resident process and is a program that always loops infinitely. Therefore, it may be set by determining whether to include the process as necessary or not. If it is better to try re-executing lp frequently, it is better not to include this sleep process, but the spool full status is
It doesn't need to be done very often because it won't be released unless another job is printed or deleted. Further, when it is important to reduce the load on the CPU of the server, it is better to include this sleep process.

【0029】次に終了要求が発生しているか判別する
(図5のS8)。終了要求は,UNIXシステムの場合
は通常はシグナル受信(割り込み処理)であり,システ
ムまたは別のプログラムは正常に終了させるために,ス
プールフル時印刷ジョブ投入部は,このシグナルに対し
て割り込み処理(プログラムに従った処理を一時的に中
断して,決められた処理を実行する処理)を行う。終了
要求が発生している(シグナルを受信している)場合は
正常に終了し,終了要求が発生していない(シグナルを
受信していない)場合は,S1に戻って処理を繰り返
す。
Next, it is determined whether or not an end request has been issued (S8 in FIG. 5). The end request is normally a signal reception (interrupt processing) in the case of UNIX system, and the spool full print job submitting unit interrupts this signal in order to end the system or another program normally. The process according to the program is temporarily interrupted and the predetermined process is executed). If an end request is generated (a signal is received), the process ends normally, and if an end request is not generated (a signal is not received), the process returns to S1 to repeat the process.

【0030】(付記1) ホストからの転送データを受
信するとスプールに格納して印刷ジョブの投入時に管理
情報をスプールに格納する処理を実行するサーバにおけ
るスプールフル時の印刷ジョブ再投入方式であって,前
記サーバは,転送データをスプール領域に格納後に起動
して印刷ジョブを投入する印刷ジョブ投入部と,前記印
刷ジョブ投入部により起動して印刷ジョブの管理情報を
前記スプール領域に格納してプリントの処理を行うプリ
ントサービス部とを備え,前記プリントサービス部に前
記スプール領域への格納処理の実行結果を前記印刷ジョ
ブ投入部に通知する手段を設け,前記印刷ジョブ投入部
に前記プリントサービス部からの実行結果を受け取り,
不成功の場合に前記印刷ジョブのパラメタ情報を他の領
域に格納する手段を設け,前記他の領域を監視して印刷
ジョブのパラメタ情報が格納されていると前記プリント
サービス部に印刷ジョブを再投入する手段を設けたこと
を特徴とするスプールフル時の印刷ジョブ再投入方式。
(Supplementary Note 1) A print job re-feeding method at the time of spool full in a server that executes processing of storing transfer data from a host in a spool and storing management information in the spool when a print job is input. The server stores the transfer data in the spool area and starts the print job by inputting the print job, and the print job input section that stores the print job management information in the spool area and prints it. And a means for notifying the print job input section of the execution result of the storage processing in the spool area, and the print service input section from the print service section. Received the execution result of
A means for storing the parameter information of the print job in another area when the print job is unsuccessful is provided, and when the other area is monitored and the parameter information of the print job is stored, the print job is re-executed to the print service unit. A print job re-feeding method when the spool is full, which is provided with a means for inputting.

【0031】(付記2) 付記1において,前記印刷ジ
ョブのパラメタ情報には,最初に印刷ジョブが実行され
た時のプロセスの識別情報と実行時刻とを含むことを特
徴とするスプールフル時の印刷ジョブ再投入方式。
(Supplementary Note 2) In Supplementary Note 1, the parameter information of the print job includes identification information of a process when the print job is first executed and execution time, and printing at spool full Job re-submission method.

【0032】(付記3) 付記2において,前記印刷ジ
ョブを再投入する手段は,前記他の領域に複数のパラメ
タ情報が格納されていると,対応する元の印刷ジョブの
実行時刻の順に印刷ジョブを再投入することを特徴とす
るスプールフル時の印刷ジョブ再投入方式。
(Supplementary Note 3) In Supplementary Note 2, when a plurality of parameter information is stored in the other area, the means for re-inputting the print job is a print job in the order of execution time of the corresponding original print job. Re-submitting the print job when the spool is full.

【0033】(付記4) 付記1において,前記プリン
トサービス部は前記スプール領域への格納処理の実行結
果として,成功の場合は“0”を設定し,失敗の場合は
“0”以外の数値を設定して前記印刷ジョブ投入部に提
供することを特徴とするスプールフル時の印刷ジョブ再
投入方式。
(Supplementary Note 4) In Supplementary Note 1, the print service unit sets "0" in the case of success and a numerical value other than "0" in the case of failure as the execution result of the storage processing in the spool area. A print job re-feeding method when the spool is full, which is set and provided to the print job inputting unit.

【0034】[0034]

【発明の効果】本発明によれば,スプールフルにより一
旦は印刷ジョブが投入できない状態になっても新たな機
構を設けることによりスプール領域に空きができるまで
印刷ジョブの再投入を自動的に行うことができる。これ
により,効率的な印刷の管理が可能となる。
According to the present invention, even if a print job cannot be input once due to spool full, a new mechanism is provided to automatically re-input the print job until the spool area becomes available. be able to. This enables efficient print management.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理構成を示す図である。FIG. 1 is a diagram showing a principle configuration of the present invention.

【図2】実施例の構成を示す図である。FIG. 2 is a diagram showing a configuration of an example.

【図3】スプール領域に格納されるLP情報の例を示す
図である。
FIG. 3 is a diagram showing an example of LP information stored in a spool area.

【図4】印刷ジョブ投入部の処理フローを示す図であ
る。
FIG. 4 is a diagram illustrating a processing flow of a print job input unit.

【図5】スプールフル時の印刷ジョブ投入部の処理フロ
ーを示す図である。
FIG. 5 is a diagram illustrating a processing flow of a print job input unit when the spool is full.

【図6】従来例の構成図である。FIG. 6 is a configuration diagram of a conventional example.

【符号の説明】[Explanation of symbols]

1 サーバ 1a 転送データ受信部 1b スプール領域 1c 印刷ジョブ投入部 1d プリントサービス部 1e 実行情報領域 1f スプールフル時印刷ジョブ投入部 2 ホスト 3 プリンタ装置 1 server 1a Transfer data receiver 1b Spool area 1c Print job input section 1d Print Service Department 1e Execution information area 1f Print job input section when spool is full 2 host 3 Printer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ホストからの転送データを受信するとス
プールに格納して印刷ジョブの投入時に管理情報をスプ
ールに格納する処理を実行するサーバにおけるスプール
フル時の印刷ジョブ再投入方式であって,前記サーバ
は,転送データをスプール領域に格納後に起動して印刷
ジョブを投入する印刷ジョブ投入部と,前記印刷ジョブ
投入部により起動して印刷ジョブの管理情報を前記スプ
ール領域に格納してプリントの処理を行うプリントサー
ビス部とを備え,前記プリントサービス部に前記スプー
ル領域への格納処理の実行結果を前記印刷ジョブ投入部
に通知する手段を設け,前記印刷ジョブ投入部に前記プ
リントサービス部からの実行結果を受け取り,不成功の
場合に前記印刷ジョブのパラメタ情報を他の領域に格納
する手段を設け,前記他の領域を監視して印刷ジョブの
パラメタ情報が格納されていると前記プリントサービス
部に印刷ジョブを再投入する手段を設けたことを特徴と
するスプールフル時の印刷ジョブ再投入方式。
1. A print job re-feeding method at the time of spool full in a server that executes a process of storing transfer data from a host in a spool and storing management information in the spool when the print job is input, The server stores the transfer data in the spool area and activates the print job to submit a print job; and the print job submitting section activates the print job to store the management information of the print job in the spool area to perform print processing. And a means for notifying the print job input section of the execution result of the storage processing in the spool area, and the print job input section executes the print service input section. A means is provided for receiving the result and storing the parameter information of the print job in another area when the result is unsuccessful. A print job re-feeding method when the spool is full, characterized in that the print service unit is provided with means for re-feeding the print job when other areas are monitored and parameter information of the print job is stored.
【請求項2】 請求項1において,前記印刷ジョブのパ
ラメタ情報には,最初に印刷ジョブが実行された時のプ
ロセスの識別情報と実行時刻とを含むことを特徴とする
スプールフル時の印刷ジョブ再投入方式。
2. The print job at spool full according to claim 1, wherein the parameter information of the print job includes identification information of a process when the print job is first executed and an execution time. Re-injection method.
JP2002076505A 2002-03-19 2002-03-19 Print job resubmission method when spool is full Expired - Fee Related JP3900981B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002076505A JP3900981B2 (en) 2002-03-19 2002-03-19 Print job resubmission method when spool is full

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002076505A JP3900981B2 (en) 2002-03-19 2002-03-19 Print job resubmission method when spool is full

Publications (2)

Publication Number Publication Date
JP2003271365A true JP2003271365A (en) 2003-09-26
JP3900981B2 JP3900981B2 (en) 2007-04-04

Family

ID=29205255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002076505A Expired - Fee Related JP3900981B2 (en) 2002-03-19 2002-03-19 Print job resubmission method when spool is full

Country Status (1)

Country Link
JP (1) JP3900981B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007164526A (en) * 2005-12-14 2007-06-28 Canon Inc Information processing apparatus and method
JP2008276757A (en) * 2007-03-29 2008-11-13 Konica Minolta Systems Lab Inc System and method for print scheduling

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007164526A (en) * 2005-12-14 2007-06-28 Canon Inc Information processing apparatus and method
JP2008276757A (en) * 2007-03-29 2008-11-13 Konica Minolta Systems Lab Inc System and method for print scheduling

Also Published As

Publication number Publication date
JP3900981B2 (en) 2007-04-04

Similar Documents

Publication Publication Date Title
US6734985B1 (en) Printing apparatus, printing system and method of controlling same
US7382477B2 (en) Information processing apparatus capable of transferring print job to another information processing apparatus, and its control method
US7719703B2 (en) Print control program and medium and information processing apparatus
US20060268304A1 (en) Print control program, method of controlling printing apparatus, and print control unit
US20060039029A1 (en) Device and method for controlling printing
JPH11134142A (en) Printing system
JP4408590B2 (en) Printing system and printing control apparatus and method
JP6265589B2 (en) Job processing apparatus, job management method, job management system, and program
US7839518B2 (en) Print control method, information processing apparatus, printing system, print control program and record medium
JP3489846B2 (en) Remote printing system
JP2003271365A (en) System for re-inputting print job in spool-full
JP3622670B2 (en) Print job management device
JP3381571B2 (en) Network system
JPH0976606A (en) Printing obstacle processing method and printing mechanism
JP2000137585A (en) Printer, printing system and its controlling method
JP2010224848A (en) Security printing system
JP3509816B2 (en) Network system and printer server
JP2012224035A (en) Printing apparatus, method for controlling printing apparatus, and program
JP2013111799A (en) Printer and method for controlling the same
JP7077590B2 (en) Computer programs and communication equipment for communication equipment
JP2000267825A (en) Printer controller
JP3125997B2 (en) Print information output device and print system
JP2005242741A (en) Information processing device, print system, and print processing method
JP2007058417A (en) Print system
JP2003094776A (en) Image output unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040908

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061116

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061225

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130112

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees