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

Re: [curn-users] Trying to use a URL to my config file



Thanks for the quick reply, Brian.

I realize it's not often that someone would want to access the .cfg
file via http. In my case, the box that curn is running on is a remote
Linux server, but I'd like to be able to store and manage the .cfg and
.ftl files in my CMS, which has a J2EE webapp interface as well as a
desktop client. 

It would be great to have this enhancement added to your next version.
Until then, I can at least keep my .ftl file in the CMS.

Thanks again,
Mark


--- Brian Clapper <bmc@xxxxxxxxxxx> wrote:

> On 10/07/06 21:56, Mark Fletcher wrote:
> > I suppose I should specify that I'm trying to use an http protocol
> URL.
> > Is that the problem? If so, can you suggest any workarounds?
> >
> >
> > --- Mark Fletcher <dafletcha@xxxxxxxxx> wrote:
> >
> >> Hi there,
> >>
> >> I'm just trying out curn, and I think it's exactly the tool I'm
> >> looking
> >> for. However, I'm trying to use a URL to point to my config file
> and
> >> I'm getting FileNotFound errors. (The URL is definitely valid.)
> I've
> >> tried with quotes and without. Am I doing something wrong?
> 
> Mark,
> 
> I assume you're doing something like this:
> 
> 	curn http://localhost/path/to/config.cfg
> 
> curn does not currently support specifying the configuration file via
> a
> URL. I'm not sure why I never added that capability; the underlying
> configuration class supports it. I just never needed it, and no one
> else
> ever requested it.
> 
> For now, you have to specify a path to the configuration file, which
> means
> you must be running curn where it can access the file directly. e.g.:
> 
> 	curn /home/bmc/.curn/bmc.cfg  # on Unix-like systems
> 	curn "c:\curn\bmc.cfg"        # on Windows
> 
> Of course, a network drive (or NFS partition, on Unix) will also
> work.
> 
> I've made a note to put URL-config support in the next version. That
> version, 3.1, is currently under development. I have a few more
> things to
> wrap up before I release it, most likely sometime in the next couple
> weeks.
> 
> If this is a show-stopper for you, I could probably work in a 3.0.1
> patch
> with the URL-config feature, but I doubt I could get to it for a few
> days.
> -- 
> -Brian
> 
> Brian Clapper, http://www.clapper.org/bmc/
> ---
> *** Posted to the curn-users mailing list (curn-users@xxxxxxxxxxx).
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---
*** Posted to the curn-users mailing list (curn-users@xxxxxxxxxxx).



 Back to curn-users archive.