Re: [CentOS] virtdown script

2011-05-03 Thread Devin Reade
--On Tuesday, May 03, 2011 02:39:54 PM + Tim Dunphy wrote: ># /bin/bash To start off, your hash-bang is missing its bang: #! /bin/bash Devin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] virtdown script

2011-05-03 Thread Ljubomir Ljubojevic
aurfal...@gmail.com wrote: > On May 3, 2011, at 11:55 AM, Ljubomir Ljubojevic wrote: > >> Tim Dunphy wrote: >>> hello list! >>> >>> I have a small shell script that I wrote that is meant to quickly >>> bring down all of my xen instances in a quick and easy manner. Odd >>> thing is, it does wor

Re: [CentOS] virtdown script

2011-05-03 Thread Ljubomir Ljubojevic
Chris Geldenhuis wrote: > Ljubomir Ljubojevic wrote: >> Tim Dunphy wrote: >> >>> hello list! >>> >>> I have a small shell script that I wrote that is meant to quickly bring >>> down all of my xen instances in a quick and easy manner. Odd thing is, it >>> does work on the command line. But if I

Re: [CentOS] virtdown script

2011-05-03 Thread Chris Geldenhuis
Ljubomir Ljubojevic wrote: > Tim Dunphy wrote: > >> hello list! >> >> I have a small shell script that I wrote that is meant to quickly bring down >> all of my xen instances in a quick and easy manner. Odd thing is, it does >> work on the command line. But if I put it into a script this happen

Re: [CentOS] virtdown script

2011-05-03 Thread aurfalien
On May 3, 2011, at 11:55 AM, Ljubomir Ljubojevic wrote: > Tim Dunphy wrote: >> hello list! >> >> I have a small shell script that I wrote that is meant to quickly >> bring down all of my xen instances in a quick and easy manner. Odd >> thing is, it does work on the command line. But if I put i

Re: [CentOS] virtdown script

2011-05-03 Thread m . roth
Ljubomir Ljubojevic wrote: > Tim Dunphy wrote: >> >> I have a small shell script that I wrote that is meant to quickly bring >> down all of my xen instances in a quick and easy manner. Odd thing is, >> it does work on the command line. But if I put it into a script this >> happens: >> >> >> [root@L

Re: [CentOS] virtdown script

2011-05-03 Thread Ljubomir Ljubojevic
Tim Dunphy wrote: > hello list! > > I have a small shell script that I wrote that is meant to quickly bring down > all of my xen instances in a quick and easy manner. Odd thing is, it does > work on the command line. But if I put it into a script this happens: > > > [root@LCENT03:/home/bluethu

Re: [CentOS] virtdown script

2011-05-03 Thread Kai Schaetzl
service xendomains stop ? Kai ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] virtdown script

2011-05-03 Thread Tim Dunphy
ing list" 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

Re: [CentOS] virtdown script

2011-05-03 Thread Johnny Hughes
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. signature.asc Description: OpenPGP digital signat

[CentOS] virtdown script

2011-05-03 Thread Tim Dunphy
hello list! I have a small shell script that I wrote that is meant to quickly bring down all of my xen instances in a quick and easy manner. Odd thing is, it does work on the command line. But if I put it into a script this happens: [root@LCENT03:/home/bluethundr/bin] #virtdown > it expects a