Re: [Vserver] Completion for vserver

2006-02-06 Thread Thomas Champagne
HiSo, the first line of the completion :have vserver-info  {: ${UTIL_VSERVER_VARS:=$(vserver-info - SYSINFO |grep prefix: | awk '{ print $2}')/lib/util-vserver/util-vserver-vars}
test -e $UTIL_VSERVER_VARS  {
. $UTIL_VSERVER_VARS. $_LIB_FUNCTIONS.Why the scripts vserver, vapt-get, vyum, vrpm, vserver-copy and others maybe, don't use this method to test the path of util-vserver-vars ?
Thomas2006/2/6, Andreas John

Hi Thomas!Well, you have the deeper insight in your script but would vote forreplacing this line: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}whith something based on
echo $(vserver-info - SYSINFO |grep prefix: | awk '{ print $2}')lib/util-vserver/util-vserver-varsWhat do you think? This way you would get all pathes as long asvserver-info is in the path (that should be always the case on running
hosts).rdds,AndreasP.S. You can replace the awk stuff by bash's internal regex handling.This was like ... eh ... ${i/foo/bar},${i/foo#bar} and such. Too busyto look it up now ...

Thomas Champagne wrote: Hi Andreas To test if the util-vserver command is installed, I've just copied the test at the beginning of the script vserver. I don't know if it is

 the good way to do it !! But this test is written in hard in the source code in the script vserver. What do we do ? Use this test or use the command vserver-info ?

 Thomas 2006/2/5, Andreas John Hi Thomas!Thomas Champagne wrote:After a weekend of shopping, I'm come back.
So, I create a page in the wiki :http://linux-vserver.org/Vserver+Completion
And I create a link in the home page.
If you want others completions for others commands, tell it me.ThomasWell, I would prefer if you would use vserver-info - SYSINFO to figure out where 'util-vserver-vars' resides, 
e.g. in my case it's not on/usr/lib/util-vserver/util-vserver-vars, but/usr/local/lib/util-vserver/util-vserver-vars.Rgds,AndreasP.S. Nice work anyway! I use it in production!
--Andreas Johnnet-lab GmbHLuisenstrasse 30b63067 OffenbachTel: +49 69 85700331
http://www.net-lab.net


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Completion for vserver

2006-02-05 Thread Andreas John
Hi Thomas!

Thomas Champagne wrote:
 After a weekend of shopping, I'm come back.
 So, I create a page in the wiki :
 http://linux-vserver.org/Vserver+Completion
 And I create a link in the home page.
 If you want others completions for others commands, tell it me.
 Thomas

Well, I would prefer if you would use vserver-info - SYSINFO to figure
 out where 'util-vserver-vars' resides, e.g. in my case it's not on
/usr/lib/util-vserver/util-vserver-vars, but
/usr/local/lib/util-vserver/util-vserver-vars.

Rgds,
Andreas

P.S. Nice work anyway! I use it in production!
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Completion for vserver

2006-01-23 Thread Thomas Champagne
After a weekend of shopping, I'm come back.So, I create a page in the wiki :http://linux-vserver.org/Vserver+CompletionAnd I create a link in the home page.
If you want others completions for others commands, tell it me.Thomas2006/1/20, Herbert Poetzl 
[EMAIL PROTECTED]:
On Fri, Jan 20, 2006 at 05:04:52PM +0100, Thomas Champagne wrote: Hi To learn bash, I decided to create the completion for vserver's commands.great! So, I send you the first release here because I don't know
 where I can post it.that's the right place, and if you can, it might makesense to put it up somewhere and link it from thewiki (if not, just let me know and I'll put it somewhere) This release support only the command vserver.
 For test it, push the source in your .bashrc or put it in the file /etc/bash_completion.d/vserver (Debian).thanks,Herbert In waiting of your comments. Thomas



___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Completion for vserver

2006-01-20 Thread Herbert Poetzl
On Fri, Jan 20, 2006 at 05:04:52PM +0100, Thomas Champagne wrote:
 Hi
 
 To learn bash, I decided to create the completion for vserver's
 commands. 

great!

 So, I send you the first release here because I don't know
 where I can post it.

that's the right place, and if you can, it might make 
sense to put it up somewhere and link it from the
wiki (if not, just let me know and I'll put it somewhere)

 This release support only the command vserver.
 
 For test it, push the source in your .bashrc or put it in the file
 /etc/bash_completion.d/vserver (Debian).

thanks,
Herbert

 In waiting of your comments.
 Thomas
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver