swapped over to json for output

If two servers were found at the same time, they might try to write to the xlsx file  at the same time. this could corrupt the file. outputting to json, and just using another script to convert is much safer.
This commit is contained in:
Astatin3
2023-09-05 07:23:38 -06:00
parent 04322bacee
commit c7b5427fae
3 changed files with 60 additions and 25 deletions
+11 -1
View File
@@ -6,5 +6,15 @@ Usage:
Usage:
srvstatus.py -p IP
srvstatus.py -f inlist.txt
srvstatus.py -f inlist.txt -o outfile.xlsx
srvstatus.py -f inlist.txt -o outfile.json
```
Then convert json to xlsx using:
```
json2xlsx.py infile.json outfile.xlsx
```
Dependencies:
```
Pillow mcstatus openpyxl
```