diff options
Diffstat (limited to 'ACE/examples/OS/Process/README')
-rw-r--r-- | ACE/examples/OS/Process/README | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/ACE/examples/OS/Process/README b/ACE/examples/OS/Process/README new file mode 100644 index 00000000000..c22757eb73f --- /dev/null +++ b/ACE/examples/OS/Process/README @@ -0,0 +1,54 @@ +This directory contains two examples: <imore> and <process>. They +show how you can play with various features of ACE_Process to create +new processes. + +imore: +----- +This example shows how to redirect the output of one process (in our +case, the parent process) to another process (child process.) This is +very 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 new +processes. The ACE_Process_Options class allows applications to +portably specify path, command-line arguments, environment variable +values. It also allows applications to set the new process' standard +handles (stdin, stdout, and stderr). ACE_Process is created with the +ACE_Process_Options and can be used to perform operations on the +running process. + +Notice that this example uses NT version's UNIX utilities like +"DATE.EXE," and "ls.exe." You can find where to get them from +Microsoft's NT page on the Web. + +Run the application as ./process -u to get all the command-line +options. + +Here's an example output: + +lambada:OS/Process> ./process -a +starting... +starting... +Sun May 11 15:06:51 CDT 1997 +date succeeded. +starting... +checking ACE_PROCESS_TEST +ACE_PROCESS_TEST = here's a large number 4294967295. +ACE_PROCESS_TEST2 = ophilli. +total 600 +drwxr-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 .obj +drwx------ 2 harrison doc 512 May 8 22:33 .shobj +drwxr-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 |