[qubes-users] Re: qvm-ls

2017-03-16 Thread Hack



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.


Re: [qubes-users] Re: qvm-ls

2017-03-16 Thread Andrew David Wong
-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-

-- 
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/38ad2085-f573-7259-bb43-4be825a2%40qubes-os.org.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: qvm-ls

2017-03-16 Thread Hack

Sorry, I should I've been more specific :s

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


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

appvms = (
disp*
)

On 03/16/2017 09:11 AM, Andrew David Wong wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

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-

iQIcBAEBCgAGBQJYykixAAoJENtN07w5UDAwnxcP/jrGSZuzkQouTonONKjRiu5d
Qt731ks6TRE08aAXkcafsS+a2umNWyAdUqYjDjZg3cnV1Cx5Xa2d7tjgJV/ogel6
8cqSZ6lIQaRhmiiInY3JEYDjP3uSU8JSLIE0ukMNvtWU3UadaAwmzNt85IF1hu98
RXGdUvldW/47rwwHV49r87zHcdR/PDMI1su50kJqKir5ItNkR5yiOpwfksym8fLi
4wTOcYk0j08iuGW8teZw0dgZFrsbl5gl3ms+DHX/+fp40RKi37UKQ8635DbwfwlC
9G/36koUqEImx07m8UFXwkKDrTzrHtrOy3JBTH2d7efT9Kl45k75122DwMjGj5ur
6XZKZ6u8juVnNB5IQQDG377pzalKyvqDAhQdMrNtvvQsabf3ZvKBrY7PQlDahnfo
v53K607BoktlQ7HQYP9M8SqPG7FEeffy2CKdw8jwMDfLCgGAhtnydB9Ebf27BCYw
UojU/ECLZMRPePjsYlNxL+omCoDCyFFMDaUuUSQ4Y+V6GZsCX0C1hjWlXiP3zllg
iQFa9HBy4v35vmf+usBViOQvpNnGhCUqvToPtTLmk1z1oCuihhzCrUCYlaZeu7A+
Cj8JLGibEWxYs5tbB3jzHhm7ysG+HRT5HM8nVAoTi9GZeDugaCS1joE2VFIXxD95
fpsjtZcgu0Ja4RG/Ag3V
=w+9L
-END PGP SIGNATURE-




--
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/oadi3b%24jm%242%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.