|
Directory : /scripts2/ |
#!/bin/bash # Print current scan status (ImunifyAV). LOAD=$(imunify-antivirus malware on-demand status --json) STATE=$(echo $LOAD | jq -r .items.status) if [ "$STATE" == "stopped" ]; then echo "No scan is currently running." else cur=$(echo $LOAD | jq -r .items.path) strt=$(echo $LOAD | jq -r .items.started) echo "Scan running in $(realpath $cur) -- since $(date -d @$strt)." fi