Welcome![Sign In][Sign Up]
Location:
Search - background process in shell

Search list

[OS Develop28104055398

Description: shell 程序要求实现的shell支持以下内部命令: 1. Batch Processing 如果shell启动带有一个文件名作为参数,打开该文件并执行文件里所有命令。待所有进程全部结束退出shell。 2. Debugging 提供-v选项,shell启动时打开此选项将在运行过程中输出若干调试信息。在该模式下,shell应该显示所有被创建了的进程的PID号,通报已结束的子进程和传递给子进程的参数等。 3. Prompt (命令行提示符) 解释器打印$PS2作为提示符。 4. Background Processing 如果命令以符合&终止,在后台并发执行该程序。Shell立即等待下一命令的输入,而不等待该程序的结束。 注:所有命令和参数由空格或tab符分隔。 -shell procedures call for the support of the following internal shell commands : 1. Batch Processing If the shell startup with a file name as a parameter. Open the document and implement all the documents in order. When all the whole process from the end of the shell. 2. Debugging for-v option, shell activated this option will open in the course of operation a number of debugging output information. In the model, the shell should show all of the process of creating the PID, Bulletins have been the end of the process and the sub-transmission to the child process parameters. 3. Prompt (command line prompt) Print $ explanation for PS2 as a prompt. 4. Background Processing order to meet if
Platform: | Size: 14591 | Author: drufy | Hits:

[OS Develop28104055398

Description: shell 程序要求实现的shell支持以下内部命令: 1. Batch Processing 如果shell启动带有一个文件名作为参数,打开该文件并执行文件里所有命令。待所有进程全部结束退出shell。 2. Debugging 提供-v选项,shell启动时打开此选项将在运行过程中输出若干调试信息。在该模式下,shell应该显示所有被创建了的进程的PID号,通报已结束的子进程和传递给子进程的参数等。 3. Prompt (命令行提示符) 解释器打印$PS2作为提示符。 4. Background Processing 如果命令以符合&终止,在后台并发执行该程序。Shell立即等待下一命令的输入,而不等待该程序的结束。 注:所有命令和参数由空格或tab符分隔。 -shell procedures call for the support of the following internal shell commands : 1. Batch Processing If the shell startup with a file name as a parameter. Open the document and implement all the documents in order. When all the whole process from the end of the shell. 2. Debugging for-v option, shell activated this option will open in the course of operation a number of debugging output information. In the model, the shell should show all of the process of creating the PID, Bulletins have been the end of the process and the sub-transmission to the child process parameters. 3. Prompt (command line prompt) Print $ explanation for PS2 as a prompt. 4. Background Processing order to meet if
Platform: | Size: 14336 | Author: drufy | Hits:

[Linux-Unixysh

Description: 本实验要实现一个简单的命令解释器,也就是Linux中的shell程序。实验程序起名为ysh,要求其设计类似于目前流行的shell解释程序,如bash、csh、tcsh,但不需要具备那么复杂的功能。ysh程序应当具有如下一些重要的特征:  能够执行外部程序命令,命令可以带参数。 . 。  能够执行fg、bg、cd、history、exit等内部命令。  使用管道和输入输出重定向。  支持前后台作业,提供作业控制功能,包括打印作业的清单,改变当前运行作业的前台/后台状态,以及控制作业的挂起、中止和继续运行。 除此之外,在这个实验中还须做到:  使用make工具建立工程。  使用调试器gdb来调试程序。  提供清晰、详细的设计文档和解决方案。 -This experiment in order to achieve a simple command interpreter, that is, the shell process in Linux. Experimental procedure named ysh, required that their design is similar to the current popular interpretation of the procedures of the shell, such as bash, csh, tcsh, but it does not need a less complex function. ysh procedures should have the following important features:  external procedures to perform the command, the command can take parameters. . .  to perform fg, bg, cd, history, exit the internal order.  the use of input and output pipes and redirection.  support before and after the Taiwan operations, the provision of operating control functions, including a list of print jobs, change the current operation of the front running/background status of the pending operation and control, suspension and continue to run. In addition, this experiment must be done:  make tools to use to establish the project.  use gdb
Platform: | Size: 8192 | Author: 香烟 | Hits:

[Multimedia DevelopAssignment3

Description: The programme implement a simple shell. It could execute a command, having pipe, redircting, forward a background process and background a foreground process and so on. It is implemented using recursive.
Platform: | Size: 8192 | Author: 吴峰 | Hits:

[Linux-UnixLinux-shell)

Description: 1、 首先利用readline()函数读到用户输入的shell命令,采用一个数组来保存shell命令,数组有固定的大小。 2、 在main()函数中根据字符串中是否存在 "&" 字符判断是否为后台进程。如果是后台命令则判断是否是多条指令,如果不是将分割后的命令传递给pipel()函数,如果是的话分割之后利用while循环将命令传递给pipel()函数。如果不是后台进程,需要用waitpid()函数等待子进程结束后父进程才继续。 -1, we use readLine () function to read user input shell command, use an array to save the shell command, arrays are fixed size. 2, in the main () function according to the string in the existence of "&" characters to determine whether the background process. If the background is to determine whether the command is a command, if not pass after segmentation command for the pipel () function, if is the words segmentation based on while cycle to pass commands to pipel () function. If not the background process, need to use waitpid () function to wait for the child process to end a process to continue.
Platform: | Size: 29696 | Author: rrr | Hits:

CodeBus www.codebus.net