readme
来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· 代码 · 共 55 行
TXT
55 行
This directory contains two examples: <imore> and <process>. Theyshow how you can play with various features of ACE_Process to createnew processes.imore:-----This example shows how to redirect the output of one process (in ourcase, the parent process) to another process (child process.) This isvery similiar what a UNIX shell does when we "pipe" command together.You can select whether you want to use named pipes or a unnamed pipe.process:--------This example shows how to use ACE_Process to "portably" create newprocesses. The ACE_Process_Options class allows applications toportably specify path, command-line arguments, environment variablevalues. It also allows applications to set the new process' standardhandles (stdin, stdout, and stderr). ACE_Process is created with theACE_Process_Options and can be used to perform operations on therunning process. Notice that this example uses NT version's UNIX utilities like"DATE.EXE," and "ls.exe." You can find where to get them fromMicrosoft's NT page on the Web.Run the application as ./process -u to get all the command-lineoptions.Here's an example output:lambada:OS/Process> ./process -astarting...starting...Sun May 11 15:06:51 CDT 1997date succeeded.starting...checking ACE_PROCESS_TESTACE_PROCESS_TEST = here's a large number 4294967295.ACE_PROCESS_TEST2 = ophilli.total 600drwxr-xr-x 5 harrison doc 512 May 11 15:06 .drwxr-xr-x 4 harrison doc 512 Apr 21 15:32 ..drwx------ 2 harrison doc 512 May 8 22:33 .objdrwx------ 2 harrison doc 512 May 8 22:33 .shobjdrwxr-xr-x 2 harrison doc 512 May 11 15:05 CVS-rw-r--r-- 1 harrison doc 1717 Oct 21 1996 Makefile-rw-r--r-- 1 harrison doc 10048 Oct 21 1996 Process.mak-rw-r--r-- 1 harrison doc 44032 Oct 21 1996 Process.mdp-rw-r--r-- 1 harrison doc 1452 May 11 15:05 README-rwx--x--x 1 harrison doc 212992 May 11 15:06 process-rw-r--r-- 1 harrison doc 10172 May 10 19:38 process.cpp-rw------- 1 harrison doc 1380 May 10 19:19 process.wst
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?