summaryrefslogtreecommitdiff
path: root/examples/OS/Process/README
blob: 3c751c506b0ae81d2d724277517aa7b0a45b06b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 .
-rw-r--r--   1 harrison doc         9330 May  7 23:54 .#process.cpp.4.3
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