LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: cgi interface to ipvsadm

To: Sylvain Maugiron <sm@xxxxxxxxxx>
Subject: Re: cgi interface to ipvsadm
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Roberto Nibali <ratz@xxxxxx>
Date: Thu, 06 Feb 2003 13:35:41 +0100
Hi,

[cc'd back to lvs-users]

Thank you for the advices. I don't believe I can create THE interface that will change the world, but I think it's a good way to learn how to write clear scripts!

Definitely. And you can always ask me for advice on shell programming.

I'm gonna try to improve my little script

Very good. You might find some invaluable resources for programming the bash shell under [1].

anyway, if it don't help any one, it will help me !

Absolutely. But it's not that it doesn't help anyone, it just needs some more shaping. The idea itself is worth following.

what make you say i'm using vim and listening to radiohead ?

1. your screenshot includes an xmms session with radiohead playing
2. your code has a typical vim mistake:

--- ipvsadmin.sh.orig   Thu Feb  6 13:30:46 2003
+++ ipvsadmin.sh        Thu Feb  6 13:30:55 2003
@@ -125,7 +125,7 @@
    echo "<td align=center><input type=text name=port size=4 maxlenght=4></td>"
    echo "<td align=center><select name=schedule>"
    echo "<option value=rr>Round Robin"
-   echo "<option value=wrr>Weightedi Round Robin"
+   echo "<option value=wrr>Weighted Round Robin"
    echo "<option value=lc>Least-Connection"
    echo "<option value=wlc>Weighted Least-Connection"
    echo "<option value=lblc>Locality-Based Least-Connection"

Was I right with my assumptions? :)

[1] http://www.tldp.org/LDP/abs/html/

Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc



<Prev in Thread] Current Thread [Next in Thread>