Location:
Search - myshell.c
Search list
Description: 编写自己的SHELL程序myshell.c实现如下功能: (1)、显示提示符“>”。 (2)、用户在此提示符可输入简单的shell命令执行。 (3)、shell命令执行完又回到“>”提示符下。 (4)、在“>”提示符下输入“quit”退出程序-prepare their SHELL myshell.c procedures to accomplish the following functions : (a), indicating that prompt "gt;" . (2), the prompt users can input simple shell command execution. (3), the shell orders again to return to the "gt;" Prompt. (4), the "gt;" Prompt importation "quit" exit procedures
Platform: |
Size: 1268 |
Author: 宏伟 |
Hits:
Description: 在LINUX下,实现一个简单的模仿SHELL的小程序,供初学者交流
Platform: |
Size: 71014 |
Author: gepeiwei@qq.com |
Hits:
Description: linux下shell的一个实现源码-under the realization of a source
Platform: |
Size: 40960 |
Author: 陈盛荣 |
Hits:
Description: 编写自己的SHELL程序myshell.c实现如下功能: (1)、显示提示符“>”。 (2)、用户在此提示符可输入简单的shell命令执行。 (3)、shell命令执行完又回到“>”提示符下。 (4)、在“>”提示符下输入“quit”退出程序-prepare their SHELL myshell.c procedures to accomplish the following functions : (a), indicating that prompt "gt;" . (2), the prompt users can input simple shell command execution. (3), the shell orders again to return to the "gt;" Prompt. (4), the "gt;" Prompt importation "quit" exit procedures
Platform: |
Size: 1024 |
Author: 宏伟 |
Hits:
Description: 这是个在Linux系统下用C编写的一个shell程序,这个shell程序实现了包括vi,add,ls,sort,args,history等功能。-This is the Linux system used in the preparation of a C shell, The shell program, including vi, add, ls, sort, args, history, and other functions.
Platform: |
Size: 40960 |
Author: jason |
Hits:
Description: 应用UNIX的fork()等系统调用,编写一个c程序具有以下功能: a) 实现Shell的基本功能,包括有:打印提示符;接受和分析命令行(滤去无效的空格、tab符号以及换行符等);执行命令(要有出错处理;输入exit或者bye退出);返回父进程; b) 处理后台程序(不需要wait) c) 处理多行命令(分析命令行中的‘ ’并处理之) d)应用 dup(), pipe()系统调用具有输入输出重定向以及管道功能;-Application of UNIX s fork () system call, etc., to prepare a c program has the following features: a) the realization of the basic functions of Shell, including: print prompt accepted and analysis of the command line (least squares void spaces, tab symbols, as well as for Bank address, etc.) the implementation of the command (must be an error processing enter exit or quit bye) return to the parent process b) procedures for dealing with the background (no wait) c) to deal with multi-line command (command-line analysis of the and to deal with of) d) Application of dup (), pipe () system call with input and output redirection and pipes function
Platform: |
Size: 4096 |
Author: 晏珏 |
Hits:
Description: 用C++编写的Linux myshell,支持重定向和管道符号,支持CD命令,供初学者参考-With C++ Prepared Linux myshell, support the redirect and pipe symbols, support for CD command reference for beginners
Platform: |
Size: 2048 |
Author: HCY |
Hits:
Description: 自己用c写的linux shell,可用供学习使用。是一个比较好的学习资料-C write their own use linux shell, available for study use. Study is a relatively good information
Platform: |
Size: 3072 |
Author: 李涛 |
Hits:
Description: 用纯C语言编写的一个Linux下的Shell,包含tch和bash的基本功能(包含重定向和后台运行),暂时不支持管道。已经在cygwin和Ubantu 7.10下测试通过。
主要包含:
makefile 编译生成myshell可执行文件
myshell.c 主函数(涉及程序入口)
utility.c 所有功能函数(将近1000行)
myshell.h(包含宏定义、结构体声明、库函数的头文件,及utility.c中的所有函数的声明)
readme 用户手册(当用户在myshell里输入help <command> 时,输出<command>的使用说明)
-With pure C language under Linux in a Shell, contains tch and bash the basic functions (including redirect and running in the background), the moment does not support the pipeline. Has been under cygwin and test Ubantu 7.10. Mainly includes: makefile compiler generated executable file myshell main function myshell.c (relating to procedures for entrance) utility.c all the features of function (nearly 1000 lines) myshell.h (contains macro definition, the structure declaration, the first document library, and all utility.c statement function) readme user' s manual (when users enter help in myshell <command> , The output <command> The use of explanation)
Platform: |
Size: 300032 |
Author: Yang |
Hits:
Description: 在myshell v0.1的基础上,增加新的功能:在父进程中接收控制台输入一行字符串,作为用户发出的Linux命令,如ls /usr/*.c <回车>,在创建一个子进程后,子进程通过调用execlp()系统调用,执行这条命令。-In the myshell v0.1 based on adding new features: In the parent process to receive the console input line of string, as issued by the Linux user commands, such as ls/usr /*. c < Enter " , in creating a sub- the process, the child process by calling execlp () system call, the implementation of this Order.
Platform: |
Size: 116736 |
Author: 谢海斌 |
Hits:
Description: 在myshell v0.1的基础上,增加新的功能:在父进程中接收控制台输入一行字符串,作为用户发出的Linux命令,如ls /usr/*.c <回车>,在创建一个子进程后,子进程通过调用execlp()系统调用,执行这条命令。-In the myshell v0.1 based on adding new features: In the parent process to receive the console input line of string, as issued by the Linux user commands, such as ls/usr /*. c < Enter " , in creating a sub- the process, the child process by calling execlp () system call, the implementation of this Order.
Platform: |
Size: 117760 |
Author: 谢海斌 |
Hits:
Description: 简单的shell功能实现,并且可以在命令行重定向。-A simple shell function realization and can be redirected at the command line.
Platform: |
Size: 1024 |
Author: 赵晨曦 |
Hits:
Description: 自己动手写的shell,实现管道,重定向,前后台,多条命令,但格式必须如 ls ps touch new.c,符号前必须有空格-Yourself to write shell, implementation pipeline, redirection, after Taiwan, a number of commands, but the format must be such as ls ps touch new.c, symbols have a space before
Platform: |
Size: 3072 |
Author: wu yun |
Hits:
Description: 利用多客户端telnet支持向vxworks增加一个用户she-adding a user shell to vxWorks using the multi-client telnet support
Platform: |
Size: 4096 |
Author: lixiaomingxyz |
Hits:
Description: 一个简单的,使用c语言实现的shell解析器。在linux下编译运行后,能够解析简单的shell命令。-A simple shell using c language parser implementation. Compile and run under the linux, it can resolve a simple shell command.
Platform: |
Size: 3072 |
Author: leigh |
Hits:
Description: 用c实现的一个简单的shell,在linux、minix3上测试正常-C achieved by a simple shell, in linux, minix3 the tests are normal
Platform: |
Size: 4096 |
Author: Jewelz Qiu |
Hits:
Description: 用C语言编程实现execl调用。
用execl执行list当前目录的功能
-With the C programming language execl call. Execl perform list with the function of the current directory
Platform: |
Size: 6144 |
Author: misgod |
Hits:
Description: 用c语言实现shell功能,包括shell下一些基本的命令的实现-Shell functions, including the realization of some basic shell commands using c language
Platform: |
Size: 2048 |
Author: 罗宾 |
Hits:
Description: 实现myshell 对于编程有很大的帮助-Achieve myshell great help for programming! ! !
Platform: |
Size: 1024 |
Author: Alex |
Hits:
Description: Your shell prompt MUST adhere to the following format:
o Current date (optional) and time (mandatory) followed by the hash sign (e.g., 13:03:00#)
Your shell MUST support, at minimum, the following commands: o The internal shell command “exit” to terminate the shell o ls, with no arguments
o ls, with arguments (e.g., ls –l)
o echo
Your shell WILL NEED system calls fork(), waitpid(), and one of execv, execve or execvp. You MUST
NOT use the C library function system(). You WILL receive a grade of zero if you do so.
You MUST check and correctly handle all return values. This means that you need to read the man pages for the system calls to figure out what the possible return values are and the types of errors
they indicate, and what you must do when you get that error.
- Your shell prompt MUST adhere to the following format:
o Current date (optional) and time (mandatory) followed by the hash sign (e.g., 13:03:00#)
Your shell MUST support, at minimum, the following commands: o The internal shell command “exit” to terminate the shell o ls, with no arguments
o ls, with arguments (e.g., ls –l)
o echo
Your shell WILL NEED system calls fork(), waitpid(), and one of execv, execve or execvp. You MUST
NOT use the C library function system(). You WILL receive a grade of zero if you do so.
You MUST check and correctly handle all return values. This means that you need to read the man pages for the system calls to figure out what the possible return values are and the types of errors
they indicate, and what you must do when you get that error.
Platform: |
Size: 1024 |
Author: Jason |
Hits: