Question: A) Write a multi-processed C/C++ program in Unix that does the following: It takes an email address as the only parameter. The program finds all

A) Write a multi-processed C/C++ program in Unix that does the following: It takes an email address as the only parameter. The program finds all the file names under the current running directory and put the information into an array in the memory. The program then finds all the process information (including process names and IDs) of the current system, and appends the information to the above-mentioned array. The program sends the contents of the array (file names and process names/IDs), to the provided email address. The subject line should be "There are N of files and M processes", where N is the actual number of files, and M is the actual number of files. Note: you can use the Unix "mail" or "mailx" program to send email. To find out the syntax of their command line parameters, use the man page or google. You are not allowed to use system() function in this or any other assignment programs.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!