Welcome![Sign In][Sign Up]
Location:
Search - EXECV

Search list

[Linux-Unixminishell

Description: The goal of the project was to create a simple shell for finding an executable in the PATH, then loads it and executes it using the execv() function. - The goal of the project was to create a simple shell for finding an executable in the PATH, then loads it and executes it using the execv() function.
Platform: | Size: 3072 | Author: eddy yang | Hits:

[Windows DevelopCreateprocess

Description: 创建进程 文件包含在linux和windows下创建进程的算法 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。 在Windows下实现: • 使用CreateProcess()来创建进程 • 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步 • 调用GetSystemTime()来获取时间 在Linux下实现: • 使用fork()/execv()来创建进程运行程序 • 使用wait()等待新创建的进程结束 • 调用gettimeofday()来获取时间 -Create process File contains under the Windows in the process of creating and Linux algorithm Design and implement the "time" Unix commands. "Mytime" command through the command line parameters to accept applications, creating a separate process to run this program, and record the process of running time. Under Windows: CreateProcess (), use to create process Use WaitForSingleObject (), in the "new" command and mytime process of creating between synchronization GetSystemTime (), call for time To realize the Linux in: Use fork (,)/execv () to create a process to run the program Using pro (), waiting for a new process of creating Gettimeofday (), calls for time
Platform: | Size: 1342464 | Author: 得分 | Hits:

[Driver Develop12

Description: 实现一个简单的shell,实现步骤:(1)在虚拟的shell界面上出现命令提示符($或#); (2)获取用户指令:获取用户在命令提示符后面输入的命令及其参数,并注意命令输入的最大长度; (3)解析指令:对用户输入的命令进行解析,解析出命令名和参数; (4)寻找命令文件:每个命令的执行都必须依靠对应的可执行文件,这些文件的存放路径存放在用户的PATH环境变量里; (5)执行命令:可通过fork( )系统调用创建一个进程来完成执行命令的任务,具体的命令执行用execv( )函数。 - Implement a simple shell, implementation steps: (1) appears on the virtual shell interface command prompt ($ or#) (2) to obtain user instructions: Get the user at the command prompt type the command and its parameters, and Note that the maximum length of command input (3) resolve command: the command to parse user input, parse out the command name and parameters (4) to find the command file: Each command must rely on the implementation of the corresponding executable files storage paths stored in the user s PATH environment variable (5) execute the command: by fork () system call to create a process to execute the command to complete the task, the specific command with execv () function.
Platform: | Size: 1024 | Author: 包伟伟 | Hits:

[Linux-UnixProcess_control

Description: 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。 在Linux下实现: • 使用fork()/execv()来创建进程运行程序 • 使用wait()等待新创建的进程结束 • 调用gettimeofday()来获取时间 -Design and implementation of the Unix " time" command. " Mytime" command via the command line parameter accepts the program to run, create a separate process to run the program, and recording program to run. Under Linux: • Use a fork ()/execv () to create a process to run the program • Use wait () to wait for the end of the newly created process • call gettimeofday () to get the time
Platform: | Size: 237568 | Author: Dean Miller | Hits:

[Console2

Description: 实验二、进程控制(15分) 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。 在Windows下实现: 使用CreateProcess()来创建进程 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步 调用GetSystemTime()来获取时间 在Linux下实现: 使用fork()/execv()来创建进程运行程序 使用wait()等待新创建的进程结束 调用gettimeofday()来获取时间 mytime的用法: $ mytime.exe program1 请注意运行结果的可读性,如:年月日时分秒毫秒微秒-The second experiment, process control (15 points) to design and implement the Unix " time" command. " Mytime" command from the command line arguments accepted to run the program, create a separate process to run the program, and record the program running time. In the Windows implementation: use CreateProcess () to create a process using WaitForSingleObject () between " mytime" command and the newly created process synchronous call GetSystemTime () to get the time in the Linux implementation: use fork ()/execv () to create a process to run the program using the wait () to wait for the end of the newly created process call gettimeofday () to get the time mytime usage: $ mytime.exe program1 Please note that the readability of the results, such as: YYMMDDHHMMSS milliseconds microseconds
Platform: | Size: 3072 | Author: 吴我 | Hits:

[OS programmytime

Description: 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。 在Windows下实现: • 使用CreateProcess()来创建进程 • 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步 • 调用GetSystemTime()来获取时间 在Linux下实现: • 使用fork()/execv()来创建进程运行程序 • 使用wait()等待新创建的进程结束 • 调用gettimeofday()来获取时间 mytime的用法: $ mytime.exe program1 -$ mytime.exe program1
Platform: | Size: 261120 | Author: 康没 | Hits:

[Internet-Networklinux

Description: 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。在Linux下实现: ◦ 使用fork()/execv()来创建进程运行程序 ◦ 使用wait()等待新创建的进程结束 ◦ 调用gettimeofday()来获取时间 -Design and implementation of Unix " time" command. " Mytime" command from the command line arguments accepted to run the program, create a separate process to run the program, and record the program running time. In the Linux implementation: ◦ Use fork ()/execv () to create a process to run the program ◦ Use wait () to wait for the end of the newly created process ◦ call gettimeofday () to get the time
Platform: | Size: 1024 | Author: wenchangwei | Hits:

[Linux-Unixsyscalls

Description: SunOS s execv() call only specifies the argv argument, the environment settings are the same as the calling processes.
Platform: | Size: 3072 | Author: saikiema | Hits:

[Process-Thread2

Description: 设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。 在Windows下实现: • 使用CreateProcess()来创建进程 • 使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步 • 调用GetSystemTime()来获取时间 在Linux下实现: • 使用fork()/execv()来创建进程运行程序 • 使用wait()等待新创建的进程结束 • 调用gettimeofday()来获取时间 mytime的用法: $ mytime.exe program1 -Design and implementation of Unix " time" command. " Mytime" command accepts command line parameters to run the program, create a separate process to run the program, and record the running time. In the Windows implementation: • Use the CreateProcess () to create a process • Use WaitForSingleObject () between " mytime" command and the newly created process synchronization • Call GetSystemTime () to get the time realized under Linux: • Use fork ()/End execv () to create a process to run the program • Use wait () to wait for the newly created process • call gettimeofday () to get the time mytime usage: $ mytime.exe program1
Platform: | Size: 22254592 | Author: 王光杰 | Hits:

[ELanguagemyshell.c

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:

CodeBus www.codebus.net