hi and thanks for your reply.. either $1 or $2 seems to do it on the command line. virsh shutdown / xm shutdown takes both. I am simply trying to get this command to work in script form. thanks! best! tim ----- Original Message ----- From: "Johnny Hughes" <johnny at centos.org> To: "CentOS mailing list" <centos at centos.org> Sent: Tuesday, May 3, 2011 1:33:14 PM Subject: Re: [CentOS] virtdown script On 05/03/2011 09:39 AM, Tim Dunphy wrote: > virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}' Do you want the "ID Number" or the "Name" to pass in? That gives you the number, I think you want the name ... that would be $2 not $1. _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos