On Tue, May 19, 2020 at 12:39:35PM +0200, Johannes Graumann wrote: > On 2020-05-19 10:35, Christophe wrote: > > > qvm-ls|grep yourvmname > > > > On 20/05/19 10:32AM, Johannes Graumann wrote: > > > > > Hello, > > > > > > See subject line ;) > > > > > > Sincerely, Joh > > > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "qubes-users" group. > > > To unsubscribe from this group and stop receiving emails from it, send an > > > email to qubes-users+unsubscr...@googlegroups.com. > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/qubes-users/74dcf0a303aa9afb95809626034f7e1e%40graumannschaft.org. > > Thank you. I guess this should then do ... > > if ! qvm-ls --running|grep -q $VM; then > echo "$VM not running or present. Aborting." > exit 1 > fi >
You know of `qvm-check` `qvm-ls --running` will miss qubes that are starting up or closing down, ie of state Transient. To catch those, you need something like `qvm-ls |egrep 'Running|Transient' -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20200519120654.GA9624%40thirdeyesecurity.org.