-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathA3Test2.log
887 lines (793 loc) · 25.4 KB
/
A3Test2.log
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
Script started on Sat Oct 21 19:25:44 2017
Script on a049403[1]% make
make: Warning: File `toyshell.cpp' has modification time 3.6e+03 s in the future
g++ -c toyshell.cpp -o toyshell.o
g++ -c A1.cpp -o A1.o
g++ -o toyshell toyshell.o A1.o
make: warning: Clock skew detected. Your build may be incomplete.
Script on a049403[2]% ./toyshell
Toyshell[0]->cp /home/venus/hilder/cs330/assignment3/datafiles/file1 file1
Toyshell[1]->output *** cat file1
*** cat file1
Toyshell[2]->cat file1
apples
cucumbers
oranges
bananas
grapefruit
grapes
tangarines
grape fruit
Toyshell[3]->sort [ file1 ] file3 $ Input and output re-direction
Toyshell[4]->output *** cat file3
*** cat file3
Toyshell[5]->cat file3
apples
bananas
cucumbers
grape fruit
grapefruit
grapes
oranges
tangarines
Toyshell[6]->sort file1 @ grep bananas $ Pipeline
Toyshell[7]->head [ file1 @ grep bananas
Toyshell[8]->sort [ file1 @ grep bananas ] file4 $ Foreground
Toyshell[9]->output *** tail file4
*** tail file4
Toyshell[10]->tail file4
bananas
Toyshell[11]->sort [ file1 @ grep bananas ] file5 - $ Background? Will the pain never end?
Job has been added to background process
Job Id Process Id Command Time Created
1 18298 sort file1 @ grep bananas Sat Oct 21 19:27:55 2017
Toyshell[12]->Job has been added to background process
Job Id Process Id Command Time Created
1 18299 sort file1 @ grep bananas Sat Oct 21 19:27:55 2017
Job has been added to background process
Job Id Process Id Command Time Created
2 18300 sort file1 @ grep bananas Sat Oct 21 19:27:55 2017
Toyshell[12]->BACKJOBS
Status Job Id Process Id Command Time Created
Done 1 18298 sort file1 @ grep bananas Sat Oct 21 19:27:55 2017
Toyshell[13]->sleep 1
Toyshell[14]->NEWNAME dog cat
Toyshell[15]->output *** dog file5
*** cat file5
Toyshell[16]->dog file5
bananas
Toyshell[17]->cp /home/venus/hilder/cs330/assignment3/datafiles/dot.cpp dot.cpp
Toyshell[18]->DISPLAY *** cat dot.cpp
Error: Command entered not recongized
Toyshell[19]->output *** cat dot.cpp
*** cat dot.cpp
Toyshell[20]->cat dot.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
Toyshell[21]->sort [ dot.cpp @ grep .h @ grep sys ] file6
Toyshell[22]->utput *** cat file6
Error: Command entered not recongized
Toyshell[23]->output *** cat file6
*** cat file6
Toyshell[24]->cat file6
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
Toyshell[25]->NEWNAME wow sort [ dot.cpp @ grep .h @ grep sys @ grep wait ] file7 -
Toyshell[26]->wow $ Did you make it this far?
Job has been added to background process
Job Id Process Id Command Time Created
2 18916 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:30:02 2017
Toyshell[27]->Job has been added to background process
Job Id Process Id Command Time Created
2 18917 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:30:02 2017
Job has been added to background process
Job Id Process Id Command Time Created
3 18918 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:30:02 2017
Job has been added to background process
Job Id Process Id Command Time Created
4 18919 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:30:02 2017
Job has been added to background process
Job Id Process Id Command Time Created
5 18920 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:30:02 2017
Toyshell[27]->BACKJOBS
Status Job Id Process Id Command Time Created
Done 2 18916 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:30:02 2017
Toyshell[28]->sleep 1
Toyshell[29]->DISPLAY *** dog file7
Error: Command entered not recongized
Toyshell[30]->output *** dog file7
*** cat file7
Toyshell[31]->dog file7
#include <sys/wait.h>
Toyshell[32]->BACKJOBS
There are no background jobs executing
Toyshell[33]->NEWNAME cleanup rm file1 file3 file4 file5 file6 file7 dot.cpp
Toyshell[34]->cleanup
Toyshell[35]->ls
A1.cpp A3Test2.log shellTerminator.txt toyshell.h
A1.o makefile toyshell toyshell.o
A3Test.log shellName.txt toyshell.cpp
Toyshell[36]->cp /home/venus/hilder/cs330/assignment3/datafiles/script1 script1
Toyshell[37]->USESCRIPT script1
command output *** START OF SCRIPT 1 *** $ Yeah, baby! A comment after a message
*** START OF SCRIPT 1 ***
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/file1 file1
after execute 0
command output *** cat file1
*** cat file1
after execute 0
command cat file1
apples
cucumbers
oranges
bananas
grapefruit
grapes
tangarines
grape fruit
after execute 0
command sort [ file1 ] file3 $ Input and output re-direction
after execute 0
command output *** cat file3
*** cat file3
after execute 0
command cat file3
apples
bananas
cucumbers
grape fruit
grapefruit
grapes
oranges
tangarines
after execute 0
command sort file1 @ grep bananas $ Pipeline
after execute 0
command head [ file1 @ grep bananas
after execute 0
command sort [ file1 @ grep bananas ] file4
after execute 0
command output *** tail file4
*** tail file4
after execute 0
command tail file4
bananas
after execute 0
command sort [ file1 @ grep bananas ] file5 - $ Will the pain never end
Job has been added to background process
Job Id Process Id Command Time Created
3 18952 sort file1 @ grep bananas Sat Oct 21 19:31:17 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Running 3 18952 sort file1 @ grep bananas Sat Oct 21 19:31:17 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
3 18954 sort file1 @ grep bananas Sat Oct 21 19:31:17 2017
Job has been added to background process
Job Id Process Id Command Time Created
4 18955 sort file1 @ grep bananas Sat Oct 21 19:31:17 2017
after execute 0
command newname dog cat
after execute 0
command output *** dog file5
*** cat file5
after execute 0
command dog file5
bananas
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/dot.cpp dot.cpp
after execute 0
command output *** cat dot.cpp
*** cat dot.cpp
after execute 0
command cat dot.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
after execute 0
command sort [ dot.cpp @ grep .h @ grep sys ] file6
after execute 0
command output *** cat file6
*** cat file6
after execute 0
command cat file6
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
after execute 0
command newname wow sort [ dot.cpp @ grep .h @ grep sys @ grep wait ] file7 -
after execute 0
command wow $ Did you make it this far?
Job has been added to background process
Job Id Process Id Command Time Created
4 18964 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:18 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 3 18952 sort file1 @ grep bananas Sat Oct 21 19:31:18 2017
Running 4 18964 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:18 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
4 18965 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:18 2017
Job has been added to background process
Job Id Process Id Command Time Created
5 18967 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:18 2017
Job has been added to background process
Job Id Process Id Command Time Created
6 18968 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:18 2017
Job has been added to background process
Job Id Process Id Command Time Created
7 18969 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:18 2017
after execute 0
command output *** dog file7
*** cat file7
after execute 0
command dog file7
#include <sys/wait.h>
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 4 18964 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:18 2017
after execute 0
command output *** END OF SCRIPT 1 ***
*** END OF SCRIPT 1 ***
after execute 0
command
Toyshell[38]->cp /home/venus/hilder/cs330/assignment3/datafiles/script2 script2
Toyshell[39]->USESCRIPT script2
command output *** START OF SCRIPT 2 ***
*** START OF SCRIPT 2 ***
after execute 0
command rm file1 file3 file4 file5 file6 file7 dot.cpp
after execute 0
command usescript script1
command output *** START OF SCRIPT 1 *** $ Yeah, baby! A comment after a message
*** START OF SCRIPT 1 ***
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/file1 file1
after execute 0
command output *** cat file1
*** cat file1
after execute 0
command cat file1
apples
cucumbers
oranges
bananas
grapefruit
grapes
tangarines
grape fruit
after execute 0
command sort [ file1 ] file3 $ Input and output re-direction
after execute 0
command output *** cat file3
*** cat file3
after execute 0
command cat file3
apples
bananas
cucumbers
grape fruit
grapefruit
grapes
oranges
tangarines
after execute 0
command sort file1 @ grep bananas $ Pipeline
after execute 0
command head [ file1 @ grep bananas
after execute 0
command sort [ file1 @ grep bananas ] file4
after execute 0
command output *** tail file4
*** tail file4
after execute 0
command tail file4
bananas
after execute 0
command sort [ file1 @ grep bananas ] file5 - $ Will the pain never end
Job has been added to background process
Job Id Process Id Command Time Created
5 18987 sort file1 @ grep bananas Sat Oct 21 19:31:29 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Running 5 18987 sort file1 @ grep bananas Sat Oct 21 19:31:29 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
5 18989 sort file1 @ grep bananas Sat Oct 21 19:31:29 2017
Job has been added to background process
Job Id Process Id Command Time Created
6 18990 sort file1 @ grep bananas Sat Oct 21 19:31:29 2017
after execute 0
command newname dog cat
after execute 0
command output *** dog file5
*** cat file5
after execute 0
command dog file5
bananas
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/dot.cpp dot.cpp
after execute 0
command output *** cat dot.cpp
*** cat dot.cpp
after execute 0
command cat dot.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
after execute 0
command sort [ dot.cpp @ grep .h @ grep sys ] file6
after execute 0
command output *** cat file6
*** cat file6
after execute 0
command cat file6
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
after execute 0
command newname wow sort [ dot.cpp @ grep .h @ grep sys @ grep wait ] file7 -
after execute 0
command wow $ Did you make it this far?
Job has been added to background process
Job Id Process Id Command Time Created
6 18999 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:30 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 5 18987 sort file1 @ grep bananas Sat Oct 21 19:31:30 2017
Running 6 18999 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:30 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
6 19001 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:30 2017
Job has been added to background process
Job Id Process Id Command Time Created
7 19002 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:30 2017
Job has been added to background process
Job Id Process Id Command Time Created
8 19003 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:30 2017
Job has been added to background process
Job Id Process Id Command Time Created
9 19004 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:30 2017
after execute 0
command output *** dog file7
*** cat file7
after execute 0
command dog file7
#include <sys/wait.h>
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 6 18999 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:31:30 2017
after execute 0
command output *** END OF SCRIPT 1 ***
*** END OF SCRIPT 1 ***
after execute 0
command
after execute 0
command output *** END OF SCRIPT 2 ***
*** END OF SCRIPT 2 ***
after execute 0
command
Toyshell[40]->cp /home/venus/hilder/cs330/assignment3/datafiles/script3 script3
Toyshell[41]->USESCRIPT script3
command output *** START OF SCRIPT 3 ***
*** START OF SCRIPT 3 ***
after execute 0
command usescript script3
Error: Can not execute script of the same name as current script
after execute 1
Stopping Script
Toyshell[42]->cleanup
Toyshell[43]->cp /home/venus/hilder/cs330/assignment3/datafiles/script4 script4
Toyshell[44]->USESCRIPT script4
command output *** START OF SCRIPT 4 ***
*** START OF SCRIPT 4 ***
after execute 0
command usescript script1
command output *** START OF SCRIPT 1 *** $ Yeah, baby! A comment after a message
*** START OF SCRIPT 1 ***
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/file1 file1
after execute 0
command output *** cat file1
*** cat file1
after execute 0
command cat file1
apples
cucumbers
oranges
bananas
grapefruit
grapes
tangarines
grape fruit
after execute 0
command sort [ file1 ] file3 $ Input and output re-direction
after execute 0
command output *** cat file3
*** cat file3
after execute 0
command cat file3
apples
bananas
cucumbers
grape fruit
grapefruit
grapes
oranges
tangarines
after execute 0
command sort file1 @ grep bananas $ Pipeline
after execute 0
command head [ file1 @ grep bananas
after execute 0
command sort [ file1 @ grep bananas ] file4
after execute 0
command output *** tail file4
*** tail file4
after execute 0
command tail file4
bananas
after execute 0
command sort [ file1 @ grep bananas ] file5 - $ Will the pain never end
Job has been added to background process
Job Id Process Id Command Time Created
7 19028 sort file1 @ grep bananas Sat Oct 21 19:31:59 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Running 7 19028 sort file1 @ grep bananas Sat Oct 21 19:31:59 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
7 19030 sort file1 @ grep bananas Sat Oct 21 19:31:59 2017
Job has been added to background process
Job Id Process Id Command Time Created
8 19031 sort file1 @ grep bananas Sat Oct 21 19:31:59 2017
after execute 0
command newname dog cat
after execute 0
command output *** dog file5
*** cat file5
after execute 0
command dog file5
bananas
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/dot.cpp dot.cpp
after execute 0
command output *** cat dot.cpp
*** cat dot.cpp
after execute 0
command cat dot.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
after execute 0
command sort [ dot.cpp @ grep .h @ grep sys ] file6
after execute 0
command output *** cat file6
*** cat file6
after execute 0
command cat file6
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
after execute 0
command newname wow sort [ dot.cpp @ grep .h @ grep sys @ grep wait ] file7 -
after execute 0
command wow $ Did you make it this far?
Job has been added to background process
Job Id Process Id Command Time Created
8 19045 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:00 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 7 19028 sort file1 @ grep bananas Sat Oct 21 19:32:00 2017
Running 8 19045 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:00 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
8 19046 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:00 2017
Job has been added to background process
Job Id Process Id Command Time Created
9 19048 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:00 2017
Job has been added to background process
Job Id Process Id Command Time Created
10 19049 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:00 2017
Job has been added to background process
Job Id Process Id Command Time Created
11 19050 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:00 2017
after execute 0
command output *** dog file7
*** cat file7
after execute 0
command dog file7
#include <sys/wait.h>
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 8 19045 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:00 2017
after execute 0
command output *** END OF SCRIPT 1 ***
*** END OF SCRIPT 1 ***
after execute 0
command
after execute 0
command usescript script2
command output *** START OF SCRIPT 2 ***
*** START OF SCRIPT 2 ***
after execute 0
command rm file1 file3 file4 file5 file6 file7 dot.cpp
after execute 0
command usescript script1
Error: Can not execute script of the same name as current script
after execute 1
Stopping Script
after execute 1
Stopping Script
Toyshell[45]->cleanup
rm: cannot remove `file1': No such file or directory
rm: cannot remove `file3': No such file or directory
rm: cannot remove `file4': No such file or directory
rm: cannot remove `file5': No such file or directory
rm: cannot remove `file6': No such file or directory
rm: cannot remove `file7': No such file or directory
rm: cannot remove `dot.cpp': No such file or directory
Toyshell[46]->cp /home/venus/hilder/cs330/assignment3/datafiles/script5 script5
Toyshell[47]->cp /home/venus/hilder/cs330/assignment3/datafiles/script6 script6
Toyshell[48]->USESCRIPT script5
command output *** START OF SCRIPT 5 ***
*** START OF SCRIPT 5 ***
after execute 0
command usescript script1
command output *** START OF SCRIPT 1 *** $ Yeah, baby! A comment after a message
*** START OF SCRIPT 1 ***
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/file1 file1
after execute 0
command output *** cat file1
*** cat file1
after execute 0
command cat file1
apples
cucumbers
oranges
bananas
grapefruit
grapes
tangarines
grape fruit
after execute 0
command sort [ file1 ] file3 $ Input and output re-direction
after execute 0
command output *** cat file3
*** cat file3
after execute 0
command cat file3
apples
bananas
cucumbers
grape fruit
grapefruit
grapes
oranges
tangarines
after execute 0
command sort file1 @ grep bananas $ Pipeline
after execute 0
command head [ file1 @ grep bananas
after execute 0
command sort [ file1 @ grep bananas ] file4
after execute 0
command output *** tail file4
*** tail file4
after execute 0
command tail file4
bananas
after execute 0
command sort [ file1 @ grep bananas ] file5 - $ Will the pain never end
Job has been added to background process
Job Id Process Id Command Time Created
9 19071 sort file1 @ grep bananas Sat Oct 21 19:32:24 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Running 9 19071 sort file1 @ grep bananas Sat Oct 21 19:32:24 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
9 19073 sort file1 @ grep bananas Sat Oct 21 19:32:24 2017
Job has been added to background process
Job Id Process Id Command Time Created
10 19074 sort file1 @ grep bananas Sat Oct 21 19:32:24 2017
after execute 0
command newname dog cat
after execute 0
command output *** dog file5
*** cat file5
after execute 0
command dog file5
bananas
after execute 0
command cp /home/venus/hilder/cs330/assignment3/datafiles/dot.cpp dot.cpp
after execute 0
command output *** cat dot.cpp
*** cat dot.cpp
after execute 0
command cat dot.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
after execute 0
command sort [ dot.cpp @ grep .h @ grep sys ] file6
after execute 0
command output *** cat file6
*** cat file6
after execute 0
command cat file6
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
after execute 0
command newname wow sort [ dot.cpp @ grep .h @ grep sys @ grep wait ] file7 -
after execute 0
command wow $ Did you make it this far?
Job has been added to background process
Job Id Process Id Command Time Created
10 19083 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:25 2017
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 9 19071 sort file1 @ grep bananas Sat Oct 21 19:32:25 2017
Running 10 19083 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:25 2017
after execute 0
command sleep 1
Job has been added to background process
Job Id Process Id Command Time Created
10 19084 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:25 2017
Job has been added to background process
Job Id Process Id Command Time Created
11 19086 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:25 2017
Job has been added to background process
Job Id Process Id Command Time Created
12 19087 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:25 2017
Job has been added to background process
Job Id Process Id Command Time Created
13 19088 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:25 2017
after execute 0
command output *** dog file7
*** cat file7
after execute 0
command dog file7
#include <sys/wait.h>
after execute 0
command backjobs
Status Job Id Process Id Command Time Created
Done 10 19083 sort dot.cpp @ grep .h @ grep sys @ grep wait Sat Oct 21 19:32:25 2017
after execute 0
command output *** END OF SCRIPT 1 ***
*** END OF SCRIPT 1 ***
after execute 0
command
after execute 0
command usescript script6
command output *** START OF SCRIPT 6 ***
*** START OF SCRIPT 6 ***
after execute 0
command usescript script1
Error: Can not execute script of the same name as current script
after execute 1
Stopping Script
after execute 1
Stopping Script
Toyshell[49]->sleep 20 -
Job has been added to background process
Job Id Process Id Command Time Created
11 19091 sleep 20 Sat Oct 21 19:32:37 2017
Toyshell[50]->cull 11
Toyshell[51]->sleep 1000 -
Job has been added to background process
Job Id Process Id Command Time Created
12 19093 sleep 1000 Sat Oct 21 19:32:50 2017
Toyshell[52]->sleep 1000 -
Job has been added to background process
Job Id Process Id Command Time Created
13 19094 sleep 1000 Sat Oct 21 19:32:57 2017
Toyshell[53]->sleep 1000 -
Job has been added to background process
Job Id Process Id Command Time Created
14 19095 sleep 1000 Sat Oct 21 19:33:04 2017
Toyshell[54]->backjobs
Status Job Id Process Id Command Time Created
Running 12 19093 sleep 1000 Sat Oct 21 19:33:04 2017
Running 13 19094 sleep 1000 Sat Oct 21 19:33:04 2017
Running 14 19095 sleep 1000 Sat Oct 21 19:33:04 2017
Toyshell[55]->output $ Comment with display command
Toyshell[56]->output $
Toyshell[57]->DISPLAY That.s the way, uh-huh, uh-huh, $ this should work!
Error: Command entered not recongized
Toyshell[58]->output That.s the way, uh-huh, uh-huh, $ this should work!
That.s the way uh-huh uh-huh
Toyshell[59]->cull 12
Toyshell[60]->cull 13
Toyshell[61]->cull 14
Error: process not found
Toyshell[62]->backjobs
Status Job Id Process Id Command Time Created
Done 12 19093 sleep 1000 Sat Oct 21 19:33:04 2017
Toyshell[63]->backjobs
There are no background jobs executing
Toyshell[64]->stop
Stopping Shell
Script on a049403[3]% exit
exit
Script done on Sat Oct 21 19:34:39 2017