Add files via upload

This commit is contained in:
kneutron 2024-04-17 13:46:04 -06:00 committed by GitHub
parent d4b8c21a6b
commit 434815e013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,33 @@
#!/bin/bash
# 2024.Apr kneutron
declare -a tmpa
tmpa=$(pct list)
# if we dont quote tha var/array, only get 1 line of output
echo "$tmpa" |egrep 'Status|running'
#VMID Status Lock Name
#105 running gotify
#118 running proxmox-fileserver-ctr
echo '====='
echo "$tmpa" |egrep 'Status|stopped'
#VMID Status Lock Name
#110 stopped suseleap-ctr-p
#113 stopped debian-ctr
#114 stopped debianctr-xorgtest
#122 stopped test-phone-tether
#124 stopped debian-qdevice-dellap
exit;
# echo "$tmpa"
VMID Status Lock Name
105 running gotify
110 stopped suseleap-ctr-p
113 stopped debian-ctr
114 stopped debianctr-xorgtest
118 running proxmox-fileserver-ctr
122 stopped test-phone-tether
124 stopped debian-qdevice-dellap