CS3413/Assignment2/documentation/sample_execution_2.txt

77 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-09-26 11:27:36 -03:00
(870697) Please input your shell command:
onechild
(870697)Hello, I am a parent process
(870698)Hello, I am a child process
(870697) Please input your shell command:
onechild
(870697)Hello, I am a parent process
(870699)Hello, I am a child process
(870697) Please input your shell command:
addnumbers
(870697)Please input number, (0) to terminate
3
(870697)Read 3
(870697)Please input number, (0) to terminate
(870700)The subtotal is: 3
5
(870697)Read 5
(870697)Please input number, (0) to terminate
(870700)The subtotal is: 8
7
(870697)Read 7
(870697)Please input number, (0) to terminate
(870700)The subtotal is: 15
0
(870697)Read 0
(870700)The subtotal is: 15
(870697)The sum is 15
(870697) Please input your shell command:
exec
(870697) Please input exec subcommand
ls
-al
;
total 40
drwxr-xr-x 2 hidden fcsgrad 61 Sep 21 23:40 .
drwxr-xr-x 5 hidden fcsgrad 61 Sep 21 11:41 ..
-rwxr-xr-x 1 hidden fcsgrad 26824 Sep 21 23:40 a.out
-rw-r--r-- 1 hidden fcsgrad 1093 Sep 21 23:40 sample_run_1.txt
-rw-r--r-- 1 hidden fcsgrad 5503 Sep 21 23:39 solution.c
(870697) Please input your shell command:
processtree
Please input the integer
5
(870697)The value is 0
(870711)The value is 1
(870708)The value is 2
(870704)The value is 16
(870706)The value is 4
(870709)The value is 20
(870713)The value is 18
(870705)The value is 8
(870715)The value is 10
(870714)The value is 6
(870710)The value is 12
(870707)The value is 24
(870712)The value is 28
(870697) Please input your shell command:
(870718)The value is 3
(870719)The value is 17
(870720)The value is 5
(870722)The value is 21
(870723)The value is 19
(870716)The value is 22
(870725)The value is 9
(870730)The value is 29
(870727)The value is 11
(870726)The value is 7
(870721)The value is 26
(870728)The value is 13
(870731)The value is 23
(870732)The value is 27
(870729)The value is 25
(870717)The value is 14
(870724)The value is 30
(870734)The value is 15
(870733)The value is 31
stop