Re: [Server-devel] Filtering and authentication

2009-04-28 Thread Martin Langhoff
On Mon, Apr 27, 2009 at 11:34 PM, Jerry Vonau wrote: > Have a look at the method used with NoCatAuth from http://nocat.net/ > Might make a good starting point. Looked at it briefly, but it's not clear what's interesting in it. Is there something specific that nocat does really well? cheers, m

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Martin Langhoff
On Tue, Apr 28, 2009 at 12:03 PM, Ignacio Vazquez-Abrams wrote: > But if you're willing to let go of this futile quest to keep $CMD a > string then you'll find that it can be done: Your example doesn't work. I don't care about keeping $CMD as a string, I think you are misunderstanding the problem

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Ignacio Vazquez-Abrams
On Mon, 2009-04-27 at 22:37 +0200, Martin Langhoff wrote: > Hi all, > > I have a simple shell scripting problem :-) you'll find attached a > shell script that ships with ejabberd. It is a fairly straightforward > bit of code, and allows us to control bits of the ejabberd internals > with a nice cl

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Ignacio Vazquez-Abrams
On Tue, 2009-04-28 at 11:17 +0200, Martin Langhoff wrote: > On Tue, Apr 28, 2009 at 9:27 AM, Ignacio Vazquez-Abrams > wrote: > >> # in the script, the CMD is built up as a string > >> CMD="touch $@" > > > > http://mywiki.wooledge.org/BashFAQ/050 > > That repeats what we know already. The thing is

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Martin Langhoff
On Tue, Apr 28, 2009 at 1:01 PM, Ignacio Vazquez-Abrams wrote: > Which part of the following doesn't work? Just test your minimal 3 line script with the example input I've given you. It breaks: # cat > sample.sh #! /bin/bash CMD=(touch "$@") bash -c "${c...@]}" # ./sample.sh "this is file one"

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread pgf
bert wrote: > > On 28.04.2009, at 13:37, Martin Langhoff wrote: > > > On Tue, Apr 28, 2009 at 1:19 PM, Ignacio Vazquez-Abrams > > wrote: > >> Ah, I see now. > >> > >> Try this: > >> > >> bash -c 'touch "$@"' "${c...@]}" > > > > Riiight, that works better... but > > > >> Or in the c

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Ignacio Vazquez-Abrams
On Tue, 2009-04-28 at 12:38 +0200, Martin Langhoff wrote: > On Tue, Apr 28, 2009 at 12:03 PM, Ignacio Vazquez-Abrams > wrote: > > But if you're willing to let go of this futile quest to keep $CMD a > > string then you'll find that it can be done: > > Your example doesn't work. I don't care about

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Martin Langhoff
On Tue, Apr 28, 2009 at 9:27 AM, Ignacio Vazquez-Abrams wrote: >> # in the script, the CMD is built up as a string >> CMD="touch $@" > > http://mywiki.wooledge.org/BashFAQ/050 That repeats what we know already. The thing is that we are building the command as a string for runuser, which wants it

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Bert Freudenberg
On 28.04.2009, at 13:37, Martin Langhoff wrote: > On Tue, Apr 28, 2009 at 1:19 PM, Ignacio Vazquez-Abrams > wrote: >> Ah, I see now. >> >> Try this: >> >> bash -c 'touch "$@"' "${c...@]}" > > Riiight, that works better... but > >> Or in the case of the full script: >> >> bash -c "$ERL"' "$@"' "$

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread Bert Freudenberg
On 28.04.2009, at 14:27, p...@laptop.org wrote: > bert wrote: >> >> On 28.04.2009, at 13:37, Martin Langhoff wrote: >> >>> On Tue, Apr 28, 2009 at 1:19 PM, Ignacio Vazquez-Abrams >>> wrote: Ah, I see now. Try this: bash -c 'touch "$@"' "${c...@]}" >>> >>> Riiight, that w

Re: [Server-devel] What's cooking on the XS pot - (27 April 2009)

2009-04-28 Thread Martin Langhoff
On Mon, Apr 27, 2009 at 10:17 PM, Martin Langhoff wrote: > Even if the code is still being worked on, it is reasonably safe to do > >  yum --enablerepo=olpcxs-testing update > > to bring in new idmgr, ejabberd-xs, moodle-xs and xs-config. Even more updates today, the moodle code has been pushed o

Re: [Server-devel] Filtering and authentication

2009-04-28 Thread Jerry Vonau
On Tue, 2009-04-28 at 16:34 -0400, Reuben K. Caron wrote: > All of the documentation is contained within their download. It > appears like a nice lightweight solution. It is basically a captive > portal that requires authentication before allowing access to the > internet. It takes a different appr

[Server-devel] GUI browser

2009-04-28 Thread david
Sorry if this subject has been covered before... Can I install a GUI to the XS so that I can run a browser to log onto the subscriber gateway that we are using here in Nauru? What do people recommend? Or can the eth0 interface config file be set up to authenticate? David Leeming Leeming Intern

Re: [Server-devel] GUI browser

2009-04-28 Thread Sean DALY
I suppose lynx, links, or curl couldn't do it? On Wed, Apr 29, 2009 at 1:39 AM, david wrote: > Sorry if this subject has been covered before... > > Can I install a GUI to the XS so that I can run a browser to log onto the > subscriber gateway that we are using here in Nauru? What do people reco

Re: [Server-devel] GUI browser

2009-04-28 Thread Anna
On Tue, Apr 28, 2009 at 6:39 PM, david wrote: > Sorry if this subject has been covered before... > > Can I install a GUI to the XS so that I can run a browser to log onto the > subscriber gateway that we are using here in Nauru? What do people > recommend? Or can the eth0 interface config file be

Re: [Server-devel] Fixing bash script bogosity - help?

2009-04-28 Thread pgf
andrew wrote: > On Tue, 2009-04-28 at 23:25 +1200, Andrew McMillan wrote: > > Hi Martin, > > > > Perhaps: > > > > = > > #!/bin/bash -x > > > > [ -n "$DEBUG" ] && set -o xtrace > > > > declare -a inparms > > > > declare -i i=0 > > while true

Re: [Server-devel] Filtering and authentication

2009-04-28 Thread Reuben K. Caron
On Tue, Apr 28, 2009 at 6:34 PM, Jerry Vonau wrote: > On Tue, 2009-04-28 at 16:34 -0400, Reuben K. Caron wrote: > > All of the documentation is contained within their download. It > > appears like a nice lightweight solution. It is basically a captive > > portal that requires authentication befor

Re: [Server-devel] Filtering and authentication

2009-04-28 Thread Sameer Verma
On Tue, Apr 28, 2009 at 9:26 PM, Reuben K. Caron wrote: > On Tue, Apr 28, 2009 at 6:34 PM, Jerry Vonau wrote: >> >> On Tue, 2009-04-28 at 16:34 -0400, Reuben K. Caron wrote: >> > All of the documentation is contained within their download. It >> > appears like a nice lightweight solution. It is b