subject

Have to use a bash Document all the shell work done to complete the assignment using the "screen –L" program or putty logging. This will keep a log of all your shell work. You will need to turn in the output files from "screen –L"/putty. See "Deliverables" below.
With console logging enabled, write a program that consists of two C++ source files. The first file contains the main() routine and the second file contains a C++ procedure.
From within main(), you must display the count of command line arguments to stdout. Further, you must display the value of each command line argument to stdout. Finally, you must call the procedure that is defined in the second file.
From within the procedure defined in the second file, you must display a log message that states you are inside the procedure. This log message must be sent to stderr.
You are then to create a shell script for compiling your code. The script will individually compile each file and generate the intermediate object file. Once the object files are created, the script will call the linker and link the object files into an executable. Your shell script should echo what it is doing at each step to stdout.
You are then to create a second shell script that will run your program several times with varying command line arguments. Each time you call your program, you shuld append the stdout to an output file called stdout. log and you should append the stderr to an output file called stderr. log. Your shell script should echo what it is doing at each step to stdout.
Example Output
$> compile. sh
Setting TEMPDIR environment variable to /scratch Compiling file1.cc
Compiling file12.cc
Linking files to create executable hw1
Done
$> run. sh
Running 'hw1' with 0 arguments:
stdout appended to stdout. txt
stderr appended to stderr. txt
Running 'hw1' with 1 argument:
stdout appended to stdout. txt
stderr appended to stderr. txt
Running 'hw1' with 5 arguments:
stdout appended to stdout. txt
stderr appended to stderr. txt
$> more stdout. txt
argc was: 1
./hw1
Done!
argc was: 2
./hw1
abc
Done!
argc was: 6
./hw1
a
b
c
d
e
Done!
$> more stderr. txt
Inside proc1() as stderr
Inside proc1() as stderr
Inside proc1() as stderr

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
You know the right answer?
Have to use a bash Document all the shell work done to complete the assignment using the "screen –L...
Questions
question
Mathematics, 13.09.2020 08:01
question
English, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Social Studies, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01
question
Spanish, 13.09.2020 08:01
question
Mathematics, 13.09.2020 08:01