[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Dedicate Nic's to DomU's


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Hans Pfeil" <HPfeil@xxxxxxx>
  • Date: Wed, 11 Jun 2008 08:57:35 -0500
  • Delivery-date: Wed, 11 Jun 2008 06:59:14 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hey John, you are absolutely correct.  I fixed it later.  Thanks so much :)

-Hans


>>> John Haxby <john.haxby@xxxxxxxxxx> 6/11/2008 5:53 AM >>>
Hans Pfeil wrote:
> #!/bin/sh
> dir=$(/etc/xen/scripts "$0")
> "$dir/network-bridge" "$@" vifnum=1 bridge=xenbr1 netdev=eth1
>   

I'm not sure what you're trying to accomplish with that "dir=..." line 
but it's not going to work.  The line says "execute /etc/xen/scripts 
with the name that this script was invoked with as parameter".  Well, 
/etc/xen/scripts is a directory and you can't execute it.

I suspect that you actually want

    dir=$(dirname "$0")

and I'm guessing that there was a transcription error somewhere and you 
thought you had to replace "dirname" (which is a command) with the name 
of a directory.

jch

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx 
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.