How to check scan is complete or not using gvm-script commands on terminal

Hii,

I have run the command ’ gvm-script --gmp-username admin --gmp-password admin socket --socketpath /run/gvm/gvmd.sock scan-new-system.gmp.py ipaddress ’ on my terminal and it worked successfully by giving an output as “Scan Started Successfully , Report id is …”

So now my question is how can I come to know whether scanning is finished or not on my terminal using gvm-script before running the command for generating pdf report using report id

As in greenbone gui we can see the scan status “Done” so i want to know how will the same thing can be figured out on terminal using gvm-script command