CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 系统编程 Linux/Unix编程

文件名称:simpleshell

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2015-12-19
  • 文件大小:
    47.26kb
  • 已下载:
    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
simpleshell/myerr.h
simpleshell/simpleshell.c
simpleshell/实验5实现带参数的简单shell.pptx
simpleshell/实验5指导.docx
simpleshell/

相关说明

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

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com