I have a task in which I have to analyze a file transfer between a ftp client and a server.
I know about
If the file transfer takes 15 secs, then I want the
htop command to run each second untill the file transfer is finished and direct the output to a file so that I can analyze the process. But I cannot think of any method which can get
htop running each second.
Also, the output of
htop command prints is not in human-readable form.