JPH07129507A - Automatic post processing system - Google Patents

Automatic post processing system

Info

Publication number
JPH07129507A
JPH07129507A JP27172793A JP27172793A JPH07129507A JP H07129507 A JPH07129507 A JP H07129507A JP 27172793 A JP27172793 A JP 27172793A JP 27172793 A JP27172793 A JP 27172793A JP H07129507 A JPH07129507 A JP H07129507A
Authority
JP
Japan
Prior art keywords
post
processing
file
command
post processing
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
JP27172793A
Other languages
Japanese (ja)
Other versions
JP2720770B2 (en
Inventor
Koji Shima
浩司 志摩
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP5271727A priority Critical patent/JP2720770B2/en
Publication of JPH07129507A publication Critical patent/JPH07129507A/en
Application granted granted Critical
Publication of JP2720770B2 publication Critical patent/JP2720770B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To provide an automatic post processing system where different post processings for every command and the processing object can be easily defined and a file control is easy, in a computer system executing processings according to inputted commands. CONSTITUTION:This system is provided with a file holding part 1 classifying and holding plural files, a command recognition part 3 recognizing an inputted command, a command execution part 4 executing the recognized command, a post processing judgment part 5 judging whether a post processing definition file defining the post processing for the executed command is held in the file holding part or not. a post processing recognition part 6 reading the post processing definition file and recognizing the definition of the post processing and a post processing execution part 7 executing the post processing according to the definition.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、入力されたコマンドに
応じて処理を実行するコンピュータシステムに関し、特
に、実行したコマンドに対する事後処理を自動的に実行
する自動事後処理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system for executing processing in response to an input command, and more particularly to an automatic post-processing method for automatically executing post-processing for an executed command.

【0002】[0002]

【従来の技術】入力されたコマンドに応じた処理を実行
するコンピュータシステムにおいて、あるコマンドを実
行した場合に、そのコマンド実行に対する事後処理を行
なわせたいことがある。事後処理としては、例えば、コ
マンドの実行結果の印刷や、一時ファイルの削除などが
ある。
2. Description of the Related Art In a computer system that executes a process according to an input command, when a certain command is executed, it is sometimes desired to perform post-processing for the execution of the command. The post-processing includes, for example, printing the execution result of the command and deleting the temporary file.

【0003】従来、コマンドの実行に対して事後処理を
自動的に実行させようとする場合、コマンドを逐次的に
自動実行させるためのバッチファイルを作成し、このバ
ッチファイル中に、実行したい処理の本体を表わすコマ
ンドとそのコマンドに対する事後処理内容に相当するコ
マンドとを記述していた。そして、このバッチファイル
を起動・実行させることにより、処理本体のコマンドと
それに対する事後処理が自動的に行なわれるようにして
いた。
Conventionally, in order to automatically execute post-processing for command execution, a batch file for automatically executing commands sequentially is created, and in this batch file, the desired processing is executed. The command representing the main body and the command corresponding to the post-processing content for the command were described. Then, by starting and executing this batch file, the command of the processing main body and post-processing for it are automatically performed.

【0004】[0004]

【発明が解決しようとする課題】バッチファイルを使用
する従来の方法では、処理(コマンド)と事後処理との
関係が固定されている。このため、同じ処理を異なる処
理対象に実施し処理対象ごとに異なる事後処理を行なわ
せたい場合には、処理対象ごとにそれぞれバッチファ
イルを作成するか、処理対象ごとに異なる事後処理に
分岐するようにバッチファイルを作成する必要がある。
の場合には、処理対象の数によっては膨大な数のバッ
チファイルを作成しそれらを管理する必要があり、の
場合には、バッチファイル自体が複雑なものになってし
まうという問題点がある。
In the conventional method using the batch file, the relationship between the process (command) and the post-process is fixed. Therefore, if you want to perform the same process for different process targets and perform different post-processes for each process target, create a batch file for each process target or branch to a different post-process for each process target. It is necessary to create a batch file in.
In the case of, it is necessary to create a huge number of batch files and manage them depending on the number of processing targets, and in the case of, there is a problem that the batch file itself becomes complicated.

【0005】本発明の目的は、コマンドおよび処理対象
ごとに異なる事後処理を簡単に定義でき、かつファイル
管理が容易である自動事後処理方式を提供することにあ
る。
An object of the present invention is to provide an automatic post-processing method in which post-processing different for each command and processing target can be easily defined and file management is easy.

【0006】[0006]

【課題を解決するための手段】本発明の自動事後処理方
式は、複数のファイルを分類して保持するファイル保持
手段と、入力されたコマンドを認識するコマンド認識手
段と、認識されたコマンドを実行するコマンド実行手段
と、実行されたコマンドに対する事後処理を定義するフ
ァイルが前記ファイル保持手段内に保持されているかを
判断する事後処理判断手段と、前記事後処理を定義する
ファイルを読み出して前記事後処理の定義を認識する事
後処理認識手段と、前記定義に応じた事後処理を実行す
る事後処理実行手段とを有する。
According to the automatic post-processing method of the present invention, a file holding means for classifying and holding a plurality of files, a command recognition means for recognizing an input command, and a recognized command execution. Command execution means, post-processing determination means for determining whether a file defining post-processing for the executed command is held in the file holding means, and reading the file defining the post-processing to perform the It has post-processing recognition means for recognizing the definition of post-processing and post-processing execution means for executing post-processing according to the definition.

【0007】[0007]

【作用】複数のファイルを分類して保持するファイル保
持手段と、実行されたコマンドに対する事後処理を定義
するファイルがファイル保持手段内に保持されているか
を判断する事後処理判断手段と、定義に応じた事後処理
を実行する事後処理実行手段とを有するので、事後処理
を定義するファイルを分類に応じて読み出して実行する
ことが可能となり、コマンドと処理対象とに応じた事後
処理を簡単に定義し実行することができる。
The file holding means for classifying and holding a plurality of files, the post-processing judging means for judging whether or not the file defining the post-processing for the executed command is held in the file holding means, and the post-processing judging means according to the definition. Since it has a post-processing execution unit that executes post-processing, it is possible to read and execute the file that defines the post-processing according to the classification, and easily define the post-processing according to the command and the processing target. Can be executed.

【0008】本発明において、ファイル保持手段として
は、いわゆるディレクトリシステムによってファイルを
保持・管理するファイルシステムを使用することが望ま
しい。このようなファイルシステムを使用する場合に
は、各処理対象のファイルがそれぞれディレクトリ単位
に配置され、事後処理を定義するファイルが各処理対象
ごとにその処理対象と同一のディレクトリ内に配置され
るようにすればよい。このように構成することにより、
処理対象のファイルが存在するディレクトリ内のみを探
索することによって、処理(コマンド)および処理対象
に応じた事後処理を定義するファイルを見つけ出すこと
が可能となる。
In the present invention, it is desirable to use a file system for holding and managing files by a so-called directory system as the file holding means. When using such a file system, the files to be processed are arranged in directory units, and the files that define post-processing are arranged in the same directory as the processing target for each processing target. You can do this. By configuring in this way,
By searching only the directory in which the file to be processed exists, it is possible to find the file that defines the post-process corresponding to the process (command) and the process target.

【0009】事後処理を定義するファイルはコマンドご
とに設定されるが、各ファイルのファイル名がファイル
名本体部分と拡張子とから構成されるようなファイルシ
ステムを使用する場合には、事後処理を定義するファイ
ルのファイル名は、そのファイル名本体部分をコマンド
名と一致させ、事後処理を定義するファイルであること
を示す特定の文字列を拡張子とするようにするとよい。
The file that defines the post-processing is set for each command. However, when using a file system in which the file name of each file is composed of the file name body part and extension, the post-processing is performed. The file name of the file to be defined may be such that the main part of the file name matches the command name, and the extension is a specific character string indicating that the file defines post-processing.

【0010】[0010]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は本発明の一実施例の自動事後処理方
式の構成を示すブロック図、図2はこの自動事後処理方
式の動作を説明するフローチャートである。ここでは、
パーソナルコンピュータで普及しているオペレーティン
グシステム(OS)であるMS-DOS(MS-DOSは
マイクロソフト社の商標)を使用したコンピュータシス
テムを例に挙げて説明する。本実施例の自動事後処理方
式は、MS-DOSによるコンピュータであれば、キー
入力部とコマンドインタプリタ(command.com)との間
に設けられる。常駐プログラム(TSRプログラム)と
しても、実現できる。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an automatic post-processing method according to an embodiment of the present invention, and FIG. 2 is a flow chart for explaining the operation of this automatic post-processing method. here,
A computer system using MS-DOS (MS-DOS is a trademark of Microsoft Corporation), which is an operating system (OS) that is widely used in personal computers, will be described as an example. The automatic post-processing method of this embodiment is provided between the key input unit and the command interpreter (command.com) in the case of a computer using MS-DOS. It can also be realized as a resident program (TSR program).

【0011】この自動事後処理方式は、複数のファイル
をディレクトリごとに保持するファイル保持部1と、コ
マンドが入力するコマンド入力部2と、入力されたコマ
ンドを認識するコマンド認識部3と、ファイル保持部1
内に格納された処理対象のファイルにアクセスしつつこ
の認識されたコマンドを実行するコマンド実行部4と、
実行されたコマンドに対する事後処理を定義する事後処
理定義ファイルがファイル保持部1内に保持されている
かを判断する事後処理判断部5と、事後処理定義ファイ
ルを読み出して事後処理の定義を認識する事後処理認識
部6と、この定義に応じた事後処理を実行する事後処理
実行部7と、によって構成されている。
In this automatic post-processing method, a file holding unit 1 for holding a plurality of files for each directory, a command input unit 2 for inputting a command, a command recognition unit 3 for recognizing an input command, and a file holding unit. Part 1
A command execution unit 4 that executes the recognized command while accessing the file to be processed stored in
Post-processing determination unit 5 that determines whether the post-processing definition file that defines the post-processing for the executed command is held in the file holding unit 1, and post-processing determination file is read to recognize the post-processing definition It is composed of a process recognition unit 6 and a post-process execution unit 7 that executes post-process according to this definition.

【0012】ファイル保持部1は、MS-DOSのファ
イルシステムそのもので構成されている。MS-DOS
では、処理対象となるファイルはディレクトリ単位で集
められており、これに対応して、事後処理定義ファイル
はディレクトリごとに作成されている。MS-DOSで
のファイル名は、その所在するディレクトリへのパス名
を省略すれば"xxxxxxxx.yyy"と表わされ、ファイル名の
うちyyyの部分は拡張子と呼ばれる。事後処理定義ファ
イルは、拡張子によって他のファイルと識別されるよう
にすればよい。例えば、拡張子"ppp"が事後処理定義フ
ァイルを表わすものとすると、コマンド名"update"の処
理に対する事後処理定義ファイルのファイル名が"updat
e.ppp"であるようにすればよい。
The file holding unit 1 is composed of the MS-DOS file system itself. MS-DOS
In, the files to be processed are collected in directory units, and the post-processing definition file is created for each directory correspondingly. The file name in MS-DOS is expressed as "xxxxxxxx.yyy" if the path name to the directory in which it is located is omitted, and the yyy portion of the file name is called the extension. The post-processing definition file may be distinguished from other files by the extension. For example, if the extension "ppp" represents a post-processing definition file, the file name of the post-processing definition file for the processing of the command name "update" is "updat
e.ppp ".

【0013】次に、図2のフローチャートを用いて、本
実施例の動作を説明する。
Next, the operation of this embodiment will be described with reference to the flow chart of FIG.

【0014】コマンドがコマンド入力部2に入力される
と(ステップ11)、コマンド認識部3は、以降の処理
で参照するために、入力されたコマンドの文字列を保持
する(ステップ12)。例えば、"update file1"という
文字列が保持される。ここで"file1"は、このコマンド
("update")による処理対象のファイルのファイル名で
ある。そして、コマンド実行部4は、入力されたコマン
ドに対する処理を実行する(ステップ13)。このコマ
ンド処理の実行の過程は、通常のMS-DOSでの処理
と同じである。
When a command is input to the command input unit 2 (step 11), the command recognition unit 3 holds a character string of the input command for reference in subsequent processing (step 12). For example, the character string "update file 1" is stored. Here, "file1" is the file name of the file to be processed by this command ("update"). Then, the command execution unit 4 executes the process for the input command (step 13). The process of executing this command process is the same as the process in a normal MS-DOS.

【0015】コマンドの実行後、事後処理判断手段5に
よって、実行したコマンドに対する事後処理定義ファイ
ル(この例では"update.ppp")が処理対象のファイルが
存在するディレクトリ内に存在するかどうかの確認がな
され(ステップ14)、この事後処理定義ファイルが存
在しなければ処理を終了し、そうでなければ次の処理へ
進む。
After the command is executed, the post-processing determination means 5 checks whether the post-processing definition file ("update.ppp" in this example) for the executed command exists in the directory in which the file to be processed exists. If the post-processing definition file does not exist, the process is terminated, and if not, the process proceeds to the next process.

【0016】続いて、事後処理認識部6によって、存在
が確認された事後処理定義ファイルの内容が読み出され
(ステップ15)、行なうべき事後処理が判定される。
事後処理の内容がMS-DOSの他のコマンドを単純に
実行するだけのものであれば、事後処理定義ファイルの
内容は、事後処理で実行させようとするコマンドそのも
のを指定するものであればよい。また、事後処理におい
て、ファイル名などの引数が必要であれば、コマンド認
識部3に保持されている文字列を変換するようにすれば
よい。例えば、処理されたファイルの内容を事後処理と
して印刷したいのであれば、事後処理定義ファイルの内
容は"print $1"としておけばよい。"$1"は仮引数を表わ
し、事後処理の実行時にコマンド入力時の引数("file
1")に置換されるようにする。
Then, the post-processing recognition unit 6 reads the contents of the post-processing definition file whose existence has been confirmed (step 15) and determines the post-processing to be performed.
If the content of the post-processing is to simply execute another command of MS-DOS, the content of the post-processing definition file may be any that specifies the command itself to be executed in the post-processing. . Further, in the post-processing, if an argument such as a file name is required, the character string held in the command recognition unit 3 may be converted. For example, if it is desired to print the content of the processed file as post-processing, the content of the post-processing definition file should be set to "print $ 1". "$ 1" represents a dummy argument, and the argument ("file
1 ").

【0017】そののち、事後処理実行部7によって上述
の事後処理(この例では"print file1")が実行され
(ステップ16)、処理が終了する。
After that, the post-processing execution section 7 executes the above-mentioned post-processing ("print file 1" in this example) (step 16), and the processing ends.

【0018】[0018]

【発明の効果】以上説明したように本発明は、コマンド
および処理対象ごとに、事後処理を定義する情報を事後
処理定義ファイルの形態で添付することにより、処理
対象とともに事後処理の定義情報も管理できるため管理
が簡単になり、事後処理の定義情報は処理ごとに記述
すればよいので、定義の方法が簡単になる、という効果
がある。
As described above, according to the present invention, information defining post-processing for each command and processing target is attached in the form of a post-processing definition file to manage post-processing definition information as well as the processing target. Since it is possible to perform management, the post-processing definition information can be described for each processing, which has the effect of simplifying the definition method.

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

【図1】本発明の一実施例の自動事後処理方式の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an automatic post-processing method according to an embodiment of the present invention.

【図2】図1の自動事後処理方式の動作を説明するフロ
ーチャートである。
FIG. 2 is a flowchart illustrating an operation of the automatic post-processing method of FIG.

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

1 ファイル保持部 2 コマンド入力部 3 コマンド認識部 4 コマンド実行部 5 事後処理判断部 6 事後処理認識部 7 事後処理実行部 11〜16 ステップ 1 File holding unit 2 Command input unit 3 Command recognition unit 4 Command execution unit 5 Post-processing determination unit 6 Post-processing recognition unit 7 Post-processing execution unit 11 to 16 steps

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力されたコマンドに応じて処理を実行
するコンピュータシステムにおける自動事後処理方式で
あって、 複数のファイルを分類して保持するファイル保持手段
と、入力されたコマンドを認識するコマンド認識手段
と、認識されたコマンドを実行するコマンド実行手段
と、実行されたコマンドに対する事後処理を定義するフ
ァイルが前記ファイル保持手段内に保持されているかを
判断する事後処理判断手段と、前記事後処理を定義する
ファイルを読み出して前記事後処理の定義を認識する事
後処理認識手段と、前記定義に応じた事後処理を実行す
る事後処理実行手段とを有する自動事後処理方式。
1. An automatic post-processing method in a computer system for executing a process according to an input command, comprising a file holding means for classifying and holding a plurality of files, and a command recognition for recognizing the input command. Means, command executing means for executing the recognized command, post-processing determining means for determining whether a file defining post-processing for the executed command is held in the file holding means, and the post-processing An automatic post-processing method having post-processing recognition means for recognizing the definition of the post-processing by reading a file that defines the post-processing and post-processing execution means for executing post-processing according to the definition.
【請求項2】 ファイル保持手段が、ディレクトリ単位
でファイルを保持・管理するものであり、事後処理判断
手段が、処理対象のファイルと同一のディレクトリ内に
おいて、事後処理を定義するファイルを探索するもので
ある請求項1に記載の自動事後処理方式。
2. The file holding means holds and manages files in directory units, and the post-processing determination means searches for a file that defines post-processing in the same directory as the file to be processed. The automatic post-processing method according to claim 1, wherein
【請求項3】 事後処理判断手段が、ファイル名に特定
の拡張子が含まれておりかつ前記ファイル名のうち拡張
子を除く部分が実行されたコマンドのコマンド名と一致
する場合に、当該ファイルを前記実行されたコマンドに
対する事後処理を定義するファイルであると判断する請
求項1または2に記載の自動事後処理方式。
3. The post-processing determination means, when the file name includes a specific extension and the part of the file name excluding the extension matches the command name of the executed command, the file The automatic post-processing method according to claim 1, wherein the post-processing is determined as a file that defines post-processing for the executed command.
JP5271727A 1993-10-29 1993-10-29 Automatic post-processing method Expired - Lifetime JP2720770B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5271727A JP2720770B2 (en) 1993-10-29 1993-10-29 Automatic post-processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5271727A JP2720770B2 (en) 1993-10-29 1993-10-29 Automatic post-processing method

Publications (2)

Publication Number Publication Date
JPH07129507A true JPH07129507A (en) 1995-05-19
JP2720770B2 JP2720770B2 (en) 1998-03-04

Family

ID=17504005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5271727A Expired - Lifetime JP2720770B2 (en) 1993-10-29 1993-10-29 Automatic post-processing method

Country Status (1)

Country Link
JP (1) JP2720770B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03265033A (en) * 1990-03-14 1991-11-26 Nec Corp Terminal program actuation management system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03265033A (en) * 1990-03-14 1991-11-26 Nec Corp Terminal program actuation management system

Also Published As

Publication number Publication date
JP2720770B2 (en) 1998-03-04

Similar Documents

Publication Publication Date Title
JPH11224258A (en) Device and method for image retrieval and computer-readable memory
JP2720770B2 (en) Automatic post-processing method
JP2001005830A (en) Information processor, its method and computer readable memory
JPH10187751A (en) Recognition data processor and its program recording medium
JP3902825B2 (en) Document search system and method
JP4010589B2 (en) Document retrieval system and retrieval document presentation method applied to the system
JPH1021192A (en) Operation extraction system and macro generation system
JPH0511987A (en) Application program starting method
JPH08101842A (en) Image filing device
JPH0830421A (en) Method for executing command through dialogue
JP3305782B2 (en) Software standardization method and software product analysis method
JPH05210562A (en) Network file system
JP2000215270A (en) Character string predicting method and device therefor
JPH0991311A (en) Information storage and retrieval device and its control method
JP2001343995A (en) Method and device for voice input processing and recording medium with voice input processing program recorded
JPH038070A (en) Keyword extracting system
JP2001202275A (en) File information preparing method and featured character group displaying method
JP3237709B2 (en) Document processing apparatus and document processing method
JPH10133862A (en) Information processor and information processing method
JP2005293440A (en) Character code converting method, computer with character code converting function, and program for converting character code
JPH09198246A (en) Method for analyzing function calling status
JPS6344240A (en) Program processing control system
JPH0962666A (en) Document processing method and device therefor
KR20010059625A (en) Method for creating memory structure to process input-value specification file for data fields
JPH11242718A (en) Character recognizing device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970513

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19971021