Find Jobs
Hire Freelancers

System Inspector

$30-250 USD

Lezárt
Kiadva ekkor: körülbelül 5 évvel ezelőtt

$30-250 USD

Teljesítéskor fizetve
Our journey through the operating system starts in userland (user space), outside the kernel. In this project, we’ll implement a Unix utility that inspects the system it runs on and creates a summarized report for the user. If you’ve ever used the top command from a shell, our program will be somewhat similar. To give you an idea of how your program will work, here’s a quick example: [magical-unicorn:~/P1-malensek]$ ./inspector System Information ------------------ Hostname: magical-unicorn Kernel Version: 4.20.3-arch1-1-ARCH Uptime: 32 minutes, 35 seconds Hardware Information -------------------- CPU Model: AMD EPYC Processor (with IBPB) Processing Units: 2 Load Average (1/5/15 min): 0.15 0.06 0.01 CPU Usage: [##########----------] 50.3% Memory Usage: [--------------------] 4.6% (0.0 GB / 1.0 GB) Task Information ---------------- Tasks running: 88 Since boot: Interrupts: 44349 Context Switches: 88340 Forks: 421 PID | State | Task Name | User | Tasks ------+--------------+---------------------------+-----------------+------- 1 | sleeping | systemd | root | 1 2 | sleeping | kthreadd | root | 1 3 | idle | rcu_gp | root | 1 4 | idle | rcu_par_gp | root | 1 (the entire list of processes is printed -- truncated for brevity) To get this information, you will use the proc, the process information pseudo-filesystem. While there are other ways to get the information displayed above, you are restricted to using proc in this assignment. There are two great resources for finding out what information is available in proc: Simply cd /proc in your shell and then run ls to view the files. You’ll see process IDs and several other virtual files that are updated dynamically with system information. Each line shown above in the process listing corresponds to a numbered directory in /proc. Check out the man page: man proc. The manual has a complete description of every file and directory stored under /proc. For a quick example, try running cat /proc/uptime. You’ll see the number of seconds the system has been running printed to the terminal. In this assignment, you will get experience working with: The open(), read(), and close() system calls for reading file data Tokenizing text files opendir and readdir functions for listing directory contents stat for getting file information getpwuid() to map user IDs to user names Argument parsing with getopt Load averages, calculating CPU usage, and Linux tasks Each portion of the display can be toggled with command line options. We’ll let the program do the talking by printing usage information (-h option): [magical-unicorn:~/P1-malensek]$ ./inspector -h Usage: ./inspector [-ahlrst] [-p procfs_dir] Options: * -a Display all (equivalent to -lrst, default) * -h Help/usage information * -l Task List * -p procfs_dir Change the expected procfs mount point (default: /proc) * -r Hardware Information * -s System Information * -t Task Information So the task list, hardware information, system information, and task information can all be turned on/off with the command line options. By default, all of them are displayed. Pay particular attention to the -p flag. This allows us to change the directory where proc is mounted (/proc by default). We will use this option to test your code with our own pre-populated copy of proc.
Projektazonosító: 18799922

A projektről

8 ajánlat
Távolról teljesíthető projekt
Aktiválva: 5 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
8 szabadúszó adott átlagosan $104 USD összegű árajánlatot erre a munkára
Felhasználó avatár
C and Linux are my top level skills. Can do your project for a couple of hours. Can start wokring immediately.
$80 USD 1 napon belül
4,9 (602 értékelés)
7,6
7,6
Felhasználó avatár
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$80 USD 1 napon belül
4,9 (158 értékelés)
7,1
7,1
Felhasználó avatár
I have experience in deploying and maintaining of: Cloud Computing Platforms: AWS Amazon Web Services,Microsoft AZURE, Google Cloud (GCP). Server Operating Systems: Windows Server 2003-to-2012R2, Windows Server 2016 Amazon Linux, Debian, RHEL, CentOS, Ubuntu. Web servers and servlets containers: IIS, APACHE, NGINX, DOCKER Mail servers: POSTFIX, EXIM, MS Exchange 2000-to-2013, MS Exchange 2016, QMAIL Database servers: MySQL, MS SQL Virtualization: MS Hyper-V, VMware Server(ESXI), VirtualBox. Directory service: Active Directory, OpenLDAP. File servers: IIS FTP, proftpd, FileZilla FTP Server, SAMBA. Firewalls: Windows firewall,ISA/Forefront TMG, MikroTik,PFSense Zywall and other Routers; Data Storage Systems: Netapp, FAS, EMC, VNX; Hosting Panels: PLESK,cPanel,Website Panel
$100 USD 0 napon belül
4,9 (304 értékelés)
6,7
6,7
Felhasználó avatár
Hello. Thank you for such a good description of your task. I have a lot of experience working in C on Linux. Since you have provided such a good specification, I know that I can deliver you precisely what you need. I look forward to hearing from you.
$45 USD 1 napon belül
5,0 (2 értékelés)
2,4
2,4
Felhasználó avatár
Hello, I'm really intersseted by your proposal, whatever you do (choosing other bidder) I'll work on it, cause I saw a challange inside it. Best regards, Mouad OURGH
$111 USD 3 napon belül
5,0 (1 értékelés)
1,2
1,2
Felhasználó avatár
we are computer sciense master students and 2 of us are data structure and algorithms teacher and we are international computer science algorithm tournoment winners and can do your project easily and walk you through the code so you can know how it is done if you want .
$200 USD 3 napon belül
5,0 (1 értékelés)
0,5
0,5
Felhasználó avatár
I have been working in a reputed IT company for last 4 years. I have experience in c and c++. I used the commands in our daily routine. i can will meet the project requirements
$166 USD 10 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

UNITED STATES zászlója
San Francisco, United States
0,0
0
Tagság kezdete: febr. 24, 2019

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.