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

Method of realizing control of redirected application-program standard output

An application program and standard output technology, applied in the computer field, can solve problems such as difficult redirection, inability to realize multiple login terminals to display output at the same time, increase the complexity of application programs, etc., and achieve the effect of improving flexibility

Inactive Publication Date: 2018-04-13
SHANGHAI GONGJIN COMM TECH
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In Linux embedded devices, the standard output of the application is generally a serial port device. After the device is shipped with a shell installed, the serial port is often unavailable. You can only log in to the device through other terminals such as telnet. In order to view the application through other terminals The real-time output information of the program generally needs to switch the standard output in the application program and print the output to the specified output device. Obviously, this method increases the complexity of the application program. For some applications without source code, it is difficult to Realize the redirection of output, and it is also impossible to realize the function of displaying output at the same time by multiple login terminals

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 of realizing control of redirected application-program standard output

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to describe the technical content of the present invention more clearly, further description will be given below in conjunction with specific embodiments.

[0023] The main feature of the method for realizing the standard output control of the redirection application program is that the method includes the following steps:

[0024] (1) call the redirection program, and specify the path and running parameters of the application program to be redirected by command line parameters;

[0025] (2) Create a Linux pseudo-terminal;

[0026] (3) launch the application program;

[0027] (4) read the output of application program from described Linux pseudo-terminal;

[0028] (5) The redirection program prints the output of the application program.

[0029] In the step (2) of the method for realizing the standard output control of redirecting application programs, the Linux pseudo-terminal includes a pseudo-terminal master device and a pseudo-terminal slave device.

[...

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 relates to a method of realizing control of redirected application-program standard output. The method includes: creating master equipment and slave equipment of a Linux pseudo-terminalby a redirection program; using the slave equipment of the pseudo terminal as standard output to start an application program; reading output of the application program from the slave equipment of thepseudo terminal by the redirection program in a program running process; and then printing the output onto other output equipment. By adopting the method of realizing control of the redirected application-program standard output in the invention, redirection or copying of the application-program standard output can be realized in a case of not modifying code of the application program, and an effect of simultaneously displaying the output of the application program on multiple terminals in real time is supported. The redirection output equipment can also be dynamically switched in the processof application program running, flexibility of Linux embedded-equipment debugging is improved, and the method is simpler and more reliable.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to the technical field of output of application programs, and specifically refers to a method for realizing standard output control of redirected application programs. Background technique [0002] In Linux embedded devices, the standard output of the application is generally a serial port device. After the device is shipped with a shell installed, the serial port is often unavailable. You can only log in to the device through other terminals such as telnet. In order to view the application through other terminals The real-time output information of the program generally needs to switch the standard output in the application program and print the output to the specified output device. Obviously, this method increases the complexity of the application program. For some applications without source code, it is difficult to Redirection of output is realized, and the function o...

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 Applications(China)
IPC IPC(8): G06F13/10G06F13/42
CPCG06F13/10G06F13/4282
Inventor 张定理宋振
Owner SHANGHAI GONGJIN COMM TECH
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