Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS 355 - Systems Programming Lab 4 - implementing who Objective: write a program that can display the list of users currently logged in to

CS 355 - Systems Programming Lab 4 - implementing who Objective: write a program that can display the list of users currently logged in to the Unix computer. What to do? Write a C program mywho whose behavior resembles that of the system command who as closely as possible. To decide what information in what format mywho should display, run the standard who command on your computer. $ who stan console Sep 17 08:59 stan ttys000 Sep 24 09:21 mywho is not expected to accept any command line arguments. You may not use fopen() and fgets() to read the data. What to submit? A single C source code file with your work. One screenshot (in PNG or JPG format) showing the results of executing the standard system command who immediately followed by the results of executing your program mywho on a Linux terminal.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Signals and Systems using MATLAB

Authors: Luis Chaparro

2nd edition

123948126, 978-0123948120

Students also viewed these Programming questions

Question

Why do most plastics contain amorphous and crystalline regions?

Answered: 1 week ago