On 03/16/2017 09:49 AM, Andrew David Wong wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

[Please don't top-post.]

On 2017-03-16 01:24, Hack wrote:
Sorry, I should I've been more specific :s

I mean in a "simple" script, to shutdown all vms whose names start with
disp*.


That's not more specific. That's completely different. :)

It doesn't not work if I try, inside an array, something like:

    appvms = (
        disp*
    )


Try something like:

    DISPVMS=($(qvm-ls --raw-list | grep ^disp))
    for VM in ${DISPVMS[*]}; do
        qvm-shutdown $VM;
    done

On 03/16/2017 09:11 AM, Andrew David Wong wrote:
On 2017-03-16 01:08, Hack wrote:
Hi,

How to output, with qvm-ls, all appvm names starting, for example, with
«disp».

This kind of command does not work:
    qvm-ls disp*

Thanks


qvm-ls --raw-list | grep disp


- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYylGcAAoJENtN07w5UDAwP4wQAKc+Tv6cjlTUIP3tWJB0eoH8
yZ1CDjqfSW+bJv7k+uki4QXUe18k0ldhRMMASlclwHzgJ5vdj4FusVNc+p4Uby6U
P7c062c1JfHkj/3gwBQRPxvj7enD/wDxor+yA2VD6N8dzj085wJN8pN8MEl2ypXy
SVKQHLK3RsOYrUzXibsKxqy17yQCN2xYq0F3+mZKNdOQP7lueixD0nHOuFjcd32+
5ghO+JKOfdHKKH1AqBm33KMZp+OcZbMpFYk3dScA2Hgbf39MviHbFLs0131DOHPU
5h/qkKE/b739co7LeophQWr5oqC3EgUIXtI0KrmD8m+Y8rBSChx9qyEef5cDfnTE
UZ1pR1VOpgPcf/3MTSb1SPA8mE/uTi0EgjfoWGASxKItAYol0PdcX/FX2mKWzn6U
rHapEyGy7sOUiXaWtRuPIPe/Nht7QKarRDoeaI8wDzeypssMizsMCKdiu2ylRcX+
l5FSjGzIaEQqTlqo6BYNDkKUB65XHfIZcbqfYxbsN4VbvOLUKUVfpM9O1adKHgcD
uaoq+4E+fOaSgd93PQ4shVPgTdtIRer4KyC0LzXWyLawNT3H41p/WDmLmbtWOzlj
Y9mPWyzY1fSIyFyXAxdixDf6AAFqTaCFL/rXrypEyUnj7SvTeSC/r71CW7BZaTUA
JMQM474HXn0GRq097kiF
=j86R
-----END PGP SIGNATURE-----



Thank you very much!

> [Please don't top-post.]

Sorry, business habit :s

I never understood how bash scripting works :s

Far away from C ; C# ; PHP, etc… syntax. It disgusts me :s I hate how it works :s It sucks !

--
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/oadkmr%24l45%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to