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

Method and device for processing application process commands in Linux system

An application process and command processing technology, applied in the LINUX field, can solve the problems of limited number of registered commands, inapplicability to application scenarios, and inability to meet real-time requirements, achieving good real-time performance and less system resource occupation

Active Publication Date: 2014-02-19
DATANG MOBILE COMM EQUIP CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although GDB can conveniently suspend the running of the application process, so as to view the variables when the application process is running and the flow of the application process when it is running, this method of interrupting the running of the application process for positioning cannot be applied to the continuous running of the application process. application scenarios
[0012] 2) The application process actively reports the execution status regularly and cannot meet the real-time requirements
[0015] The remote simulated shell sends the shell command to the required terminal through communication, and the communication of each intermediate node is required to be completely normal. This method is invalid when the communication is blocked.
In addition, the specified shell command needs to be registered by the user before it can be used, and the number of registered commands is limited. In an emergency, if the command to be executed is not registered, there is nothing you can do

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 processing application process commands in Linux system
  • Method and device for processing application process commands in Linux system
  • Method and device for processing application process commands in Linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0076] One of the core concepts of the embodiments of the present invention is to add threads to the application process in the LINUX system and generate a shell module, and introduce a shell process in the LINUX system, and the shell process interacts with the shell module in the application process . When the shell module obtains the command string input by the serial port of the LINUX system, if the command string is a shell process command to be executed by itself, it can directly execute the command string; if the command string is executed by the application process To execute a non-shell process command, the shell module in the application process is notified to execute the command string.

[0077] refer to figure 1 , sho...

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 method and a device for processing application process commands in a Linux system. In an application progress in the Linux system, threads are increased and a shell module is generated; a shell progress is introduced into the Linux system; the shell progress interacts with the shell module in the application progress. The method includes pre-setting a shell progress command and creating a command shared file by the shell progress; acquiring a command string input from a serial port of the Linux system by the shell progress; judging whether the command string is a shell progress command or not by the shell progress; if yes, analyzing and executing the command string by the shell progress, and if not, writing the command string into the command shared file and sending a signal to the shell module in the designated application progress by the shell progress; acquiring the command string from the command shared file by the shell module after receiving the signal. By the method and the device, execution conditions of the application progress can be checked at any time under the condition that normal operation of the application progress is not affected.

Description

technical field [0001] The invention relates to the technical field of LINUX, in particular to a method and a device for processing application process commands in a LINUX system. Background technique [0002] In a specific implementation, the user can obtain the execution status of the application process in the following three ways. [0003] 1) GDB debugging to view the running status [0004] GDB is a powerful application process debugging tool under UNIX system released by the GNU open source organization. It is also the default debugger of the LINUX system and can be used to debug embedded real-time systems. GDB has two ways to debug and track the running application process: one is to use the ps command under LINUX to view the process identification PID of the running application process, and then use the GDB PID format to mount the running application process; It is to use GDB to associate the source code first, then use GDB to debug, and use the attach command in G...

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
IPC IPC(8): G06F9/48G06F9/44
Inventor 王丽娜蔡蕾
Owner DATANG MOBILE COMM EQUIP CO LTD
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