文件名称: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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





simpleshell\apue.h

...........\myerr.h

...........\simpleshell.c

...........\实验5实现带参数的简单shell.pptx

...........\实验5指导.docx

simpleshell

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org