Create a shell script that lists all the files in the present working directory in long format name this file listMyFiles.sh. Write a c program that uses the system () function and uses it to run listMyFiles.sh

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section8.4: File Streams As Function Arguments
Problem 1E
icon
Related questions
Question

Question 1

a) Explain the difference between ls -l > mylisting.txt and ls -l >> mylisting.txt

 

b) Create a shell script that lists all the files in the present working directory in

long format name this file listMyFiles.sh. Write a c program that uses the

system () function and uses it to run listMyFiles.sh

 

c) Create a daemon in C in the Unix environment, your daemon must create a

text file called aitDaemonLog.txt and populate it with 1000 lines of a string

each line must be written after 10 seconds, the string must end with the count

of the string;

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr