文件名称:simpleshell
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2015-12-19
- 文件大小:
- 47kb
- 下载次数:
- 0次
- 提 供 者:
- 苏**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实验5 简单shell的设计和实现(20分)
目的:
1、练习使用编程环境,包括shell的命令,vi和gcc编译器。
2、体会进程概念,了解fork,execve,wait等系统调用。
要求:
1、除了系统调用execve,不允许使用其他的exec函数。输入应当允许带多个参数(一行内可以表示),不考虑通配符 (即“*”、“?”、“-”等等)的处理。
2、输入错误命令能提示出错并进入下一轮接收命令状态。
3、可以用Ctrl-C和Ctrl-\结束简单shell的运行。
4、程序运行正确,提示简洁明确。
5、实验提交文件为:实验报告、源程序、可执行程序。
-Experiment 5 simple shell design and implementation (20 points)
purpose:
1, practice using the programming environment, including shell commands, vi and gcc compiler.
2, experience the process of concept, understanding fork, execve, wait system calls.
Claim:
1, in addition to the system call execve, are not allowed to use other functions. It should be allowed to enter with more than one parameter (which may represent one line), without considering the wildcard (or * , ? , - Etc.) treatment.
2. Enter the wrong command can prompt an error and the next round receives a command state.
3, you can use Ctrl-C and Ctrl- \ end simple shell operation.
4, the program runs properly, suggesting clear and concise.
5, experiment submissions to: test reports, source code, executable program.
目的:
1、练习使用编程环境,包括shell的命令,vi和gcc编译器。
2、体会进程概念,了解fork,execve,wait等系统调用。
要求:
1、除了系统调用execve,不允许使用其他的exec函数。输入应当允许带多个参数(一行内可以表示),不考虑通配符 (即“*”、“?”、“-”等等)的处理。
2、输入错误命令能提示出错并进入下一轮接收命令状态。
3、可以用Ctrl-C和Ctrl-\结束简单shell的运行。
4、程序运行正确,提示简洁明确。
5、实验提交文件为:实验报告、源程序、可执行程序。
-Experiment 5 simple shell design and implementation (20 points)
purpose:
1, practice using the programming environment, including shell commands, vi and gcc compiler.
2, experience the process of concept, understanding fork, execve, wait system calls.
Claim:
1, in addition to the system call execve, are not allowed to use other functions. It should be allowed to enter with more than one parameter (which may represent one line), without considering the wildcard (or * , ? , - Etc.) treatment.
2. Enter the wrong command can prompt an error and the next round receives a command state.
3, you can use Ctrl-C and Ctrl- \ end simple shell operation.
4, the program runs properly, suggesting clear and concise.
5, experiment submissions to: test reports, source code, executable program.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
simpleshell\apue.h
...........\myerr.h
...........\simpleshell.c
...........\实验5实现带参数的简单shell.pptx
...........\实验5指导.docx
simpleshell