-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfinal_script_A2.log
More file actions
198 lines (162 loc) · 6.39 KB
/
final_script_A2.log
File metadata and controls
198 lines (162 loc) · 6.39 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
Script started on Fri Sep 29 09:57:37 2017
Script on a049404[1]% g++ -c A1.cpp toyshell.cpp
Script on a049404[2]% g++ 0o[K[K-o run A1.o toyshell.o
Script on a049404[3]% ./run
toyshell[0]%$ t This is a comment - it is treaded ated like a blank line.
toyshell[0]%$ This is alos a so a comment.
toyshell[0]%
toyshell[0]%sleep 1000 - $St Start a backgroup und process.
made it
Job has been added to background process
Job Id Process Id Command Time Created
1 26977 sleep 1000 Fri Sep 29 09:58:36 2017
toyshell[1]%sleep 15 - $a Adn nd another.
made it
Job has been added to background process
Job Id Process Id Command Time Created
2 26978 sleep 15 Fri Sep 29 09:58:47 2017
toyshell[2]%backjobs BACKJOBS $ Should u ld show both of the above processes.
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 09:58:47 2017
Done 2 26978 sleep 15 Fri Sep 29 09:58:47 2017
toyshell[3]%cp /home/venus/hilder/cs330/assignment2/datafiles/alpha file1
toyshell[4]%BACKJOBS $ Might still show a sleep process running.
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 09:58:47 2017
toyshell[5]%$ Enter all comments as shown above. Enter all a comments
toyshell[5]%$ shown below , as well.
toyshell[5]%cat file1 $ file1 should be there.
apples
cucumbers
oranges
bananas
grapefruit
grapes
tangarines
grape fruit
toyshell[6]%sleep 1000 -
made it
Job has been added to background process
Job Id Process Id Command Time Created
3 26989 sleep 1000 Fri Sep 29 10:00:26 2017
toyshell[7]%BACKJOBS
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 10:00:26 2017
Running 3 26989 sleep 1000 Fri Sep 29 10:00:26 2017
toyshell[8]%BACKJOBS
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 10:00:26 2017
Running 3 26989 sleep 1000 Fri Sep 29 10:00:26 2017
toyshell[9]%sleep 5
toyshell[10]%sleep 1000 -
made it
Job has been added to background process
Job Id Process Id Command Time Created
4 26993 sleep 1000 Fri Sep 29 10:00:48 2017
toyshell[11]%BACKJOBS
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 10:00:48 2017
Running 3 26989 sleep 1000 Fri Sep 29 10:00:48 2017
Running 4 26993 sleep 1000 Fri Sep 29 10:00:48 2017
toyshell[12]%sleep 20 -
made it
Job has been added to background process
Job Id Process Id Command Time Created
5 26994 sleep 20 Fri Sep 29 10:00:55 2017
toyshell[13]%f FRONTJOB 5
toyshell[14]%wh ho
odo198 tty1 Sep 29 09:24 (:0)
caron24k pts/0 Sep 29 00:08 (142.3.200.201)
odo198 pts/1 Sep 29 09:39 (:0.0)
kopp202r pts/2 Sep 29 09:33 (142.3.200.201)
kopp202r pts/3 Sep 29 09:57
toyshell[15]%NEWNAME mycopy cp
toyshell[16]%NEWNAME dog cat
toyshell[17]%SAVENEWNAMES myaliases
toyshell[18]%NEWNE AMES
mycopy | cp
dog | cat
toyshell[19]%why
Error: Command entered not recongized
toyshell[20]%mycopy /etc/mod td file2
toyshell[21]%NEWNAME mycopy rm
toyshell[22]%ls -
made it
Job has been added to background process
Job Id Process Id Command Time Created
6 27020 ls Fri Sep 29 10:01:58 2017
toyshell[23]%A1.cpp file1 junk savealiases testdir
A1.o file2 myaliases shellName.txt toyshell.cpp
README.md final_script_A1 partners shellTerminator.txt toyshell.h
errorTesting.log final_script_A2 run test.txt toyshell.o
toyshell[23]%SAVE mycopy file2
toyshell[24]%ls
A1.cpp final_script_A1 run testdir
A1.o final_script_A2 savealiases toyshell.cpp
README.md junk shellName.txt toyshell.h
errorTesting.log myaliases shellTerminator.txt toyshell.o
file1 partners test.txt
toyshell[25]%SAVENEWNAMES myaliases
toyshell[26]%NEWNAMES
mycopy | rm
dog | cat
toyshell[27]%when -
made it
Error: Command entered not recongized
toyshell[28]%NEWNAMES mycopy cp
toyshell[29]%READNEWNAMES myaliases
toyshell[30]%NEWNAMES
mycopy | cp
dog | cat
toyshell[31]%COND ( CHECKR myaliases ) dog myaliases -
File is readable
made it
Job has been added to background process
Job Id Process Id Command Time Created
7 27024 cat myaliases Fri Sep 29 10:02:59 2017
toyshell[32]%mycopy
rm
dog
cat
toyshell[32]%COND ( CHECKX /bin/cp ) cp myaliases junk
File is executable
toyshell[33]%mkdir junkdir
toyshell[34]%COND ( CHECKD junkdir ) rmdir junkdir
Name is a directory
Name is a directory
toyshell[35]%cp myaliases savealiases
toyshell[36]%NOT COND ( CHECKD myaliases ) mycopy myaliases
cp: missing destination file operand after `myaliases'
Try `cp --help' for more information.
toyshell[37]%COND ( CHECKE savealiases ) NOT COND ( CHECKE myaliases ) cp savealias ses myaliases
File does exist
File does exist
toyshell[38]%BACKJOBS
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 10:02:59 2017
Running 3 26989 sleep 1000 Fri Sep 29 10:02:59 2017
Running 4 26993 sleep 1000 Fri Sep 29 10:02:59 2017
Done 6 27020 ls Fri Sep 29 10:02:59 2017
Done 7 27024 cat myaliases Fri Sep 29 10:02:59 2017
toyshell[39]%ls
A1.cpp final_script_A1 run testdir
A1.o final_script_A2 savealiases toyshell.cpp
README.md junk shellName.txt toyshell.h
errorTesting.log myaliases shellTerminator.txt toyshell.o
file1 partners test.txt
toyshell[40]%BACKJOBS
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 10:02:59 2017
Running 3 26989 sleep 1000 Fri Sep 29 10:02:59 2017
Running 4 26993 sleep 1000 Fri Sep 29 10:02:59 2017
Done 0 27024 cat myaliases Fri Sep 29 10:02:59 2017
toyshell[41]%BACKJOBS
Status Job Id Process Id Command Time Created
Running 1 26977 sleep 1000 Fri Sep 29 10:02:59 2017
Running 3 26989 sleep 1000 Fri Sep 29 10:02:59 2017
Running 4 26993 sleep 1000 Fri Sep 29 10:02:59 2017
toyshell[42]%s STOP
Stopping Shell
Script on a049404[4]% exit
exit
Script done on Fri Sep 29 10:06:22 2017