0

I am running esxtop in batch mode using the below command:

esxtop –b –a –d 10 –n 2000| gzip -9c > perfData.csv.gz

This is going to run for a little over 5 hrs, but I want to stop it gracefully and get my perfData.csv.gz file uncorrupted. Is there any way to do this?

stambata
  • 1,668
  • 3
  • 14
  • 18
rkrishnan
  • 101
  • 2

1 Answers1

0

The man page says

Esxtop in batch mode runs until it produces the number of iterations requested (see command-line option n below for more details) or until killed using CTRL c.

It makes no other mention of signals.

I would try a simple experiment. In another terminal I would run the command again with a different output filename

esxtop –b –a –d 10 –n 2000| gzip -9c > test.csv.gz

I would let it collect data for a short time and hen type Ctrl-c. Inspect the output and see if it is corrupted or not.

You could try a similar experiment by sending a HUP to the test process.

user9517
  • 115,471
  • 20
  • 215
  • 297