Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for saving pseudo-terminal log files

A log file and storage method technology, applied in the field of pseudo-terminal log file storage, can solve the problems of occupying large temporary storage space, system operation impact, large storage space, etc.

Active Publication Date: 2020-12-15
LOONGSON TECH CORP
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the problem in the prior art that the pseudo-terminal log file requires a large storage space and occupies a large amount of temporary storage space, which affects the operation of the system, the present invention provides a method and device for storing a pseudo-terminal log file

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for saving pseudo-terminal log files
  • Method and device for saving pseudo-terminal log files
  • Method and device for saving pseudo-terminal log files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0041] A pseudo-terminal is defined as a pair of virtual character devices. Under the Linux operating system, a pseudo-terminal can specifically refer to a master-slave device connected by a bidirectional pipe that conforms to the line discipline. When the pseudo-terminal is started, any write operation on the master device will be reflected on the slave device, and vice versa; in addi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a pseudo terminal log file storage method and device. Terminal process is started, the terminal process inquires a current switch state value after being started; the terminal process determines a storage path according to the current switch state value; a pseudo terminal log file under the storage path is created; therefore, the terminal process determines the storage pathaccording to the current switch state value and stores the pseudo terminal log file into the corresponding storage path, so that the problem that the operation of the system is influenced when the pseudo terminal log file is directly stored in the default storage path of the system by the terminal process in the prior art is avoided.

Description

technical field [0001] The invention relates to computer technology, in particular to a method and device for saving log files of a pseudo-terminal. Background technique [0002] A pseudo-terminal is defined as a pair of virtual character devices, which can specifically refer to a master-slave device connected by a bidirectional pipe that conforms to the line discipline. When the pseudo-terminal starts, all information interactions between the master and slave devices will be recorded by the terminal process used to generate log files based on the captured information interactions, and the generated log files will be pseudo-terminal log files. [0003] In the prior art, the above-mentioned pseudo-terminal log files and temporary files generated when the system runs the software are all saved to the default storage path of the system and the corresponding temporary storage space, such as the temporary folder under / tmp. However, generally speaking, due to the long running ti...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/18G06F11/34
CPCG06F11/3476
Inventor 王连国王洪虎
Owner LOONGSON TECH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products