mirror of
https://github.com/nicolargo/glances.git
synced 2025-12-26 23:49:12 -05:00
14 lines
490 B
Bash
Executable File
14 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Exit on error
|
|
set -e
|
|
|
|
# Run glances with export to CSV file, stopping after 10 writes
|
|
# This will run synchronously now since we're using --stop-after
|
|
echo "Glances starts to export system stats to CSV file /tmp/glances.csv (duration: ~ 20 seconds)"
|
|
rm -f /tmp/glances.csv
|
|
.venv/bin/python -m glances --export csv --export-csv-file /tmp/glances.csv --stop-after 10 --quiet
|
|
|
|
echo "Checking CSV file..."
|
|
.venv/bin/python ./tests-data/tools/csvcheck.py -i /tmp/glances.csv -l 9
|