In particular: i have a menu with different choises. Every choise is a script.
The choise number 1 is: saving the list of active processes on the pc. The script periodically saves them (using sleep command) in a .csv file named report_<date>_<time>.csv.
<date> and <time> are the date and the time of the system when you create the file .csv
Every line of the .csv file reports an active process. For every process must be specify the following information, in this order:
{ USER; PID; COMMAND; START TIME; CPU TIME }
● COMMAND : name of the process without parameters
● START TIME : "HH:MM:SS"
● CPU TIME : [DD-]hh:mm:ss
---------- Post updated at 09:25 AM ---------- Previous update was at 09:23 AM ----------
It's not an homework for school, i'm tring to do a program to understand how processes commands works and also i/o redirection, but i have some difficulties