文件名称:myshell_v0.3
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- qi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在Linux中,用C编写一个myshell1原型,基本功能是根据创建一个子进程,它显示从父进程获得的环境变量和命令行参数,且父进程在子进程结束后退出。 父进程中接收控制台输入一行字符串,作为用户发出的Linux命令,如ls /usr/*.c <回车>,在创建一个子进程后,子进程通过调用execlp()系统调用,执行这条命令。输入输出重定向与管道-In Linux, using C to write a myshell1 prototype, the basic function is based on creating a child process, it appears received from the parent process environment variables and command line parameters, and the parent process after the child process to exit. Parent process to receive console input line of string, as issued by the Linux user commands such as ls/usr /*. c < Enter> , in the process of creating a child, the child process by calling execlp () system call, the implementation of this command. Input and output redirection and pipes
(系统自动生成,下载前可以参看下载内容)
下载文件列表
myshell_v0.3.c