I use curn.bat on windows and want to call the curn-read via command
shell. I want to change the URL via command line parameter and not
directly via URL-TAG in config file. How can I do this ?
> I use curn.bat on windows and want to call the curn-read via command > shell. I want to change the URL via command line parameter and not > directly via URL-TAG in config file. How can I do this ?
> Thanks for reply !
It is not possible to do what you want. The only way to configure the URLs curn reads is via the configuration file.
It's certainly possible to write a script that modifies the contents of the configuration file, but curn, itself, does not support that capability. -- -Brian
Brian Clapper, http://www.clapper.org/bmc/ Illinois isn't exactly the land that God forgot -- it's more like the land He's trying to ignore.
What a pity.... but maybe is there a way to set the url via file, e.g.
"URL://${program:cwd}/something.txt" or something like that ?
We try to create a generic changelog for every build of our software.
So I guess the editting of this config is not the best generic way...
So maybe there is a way to get enviroment variables to set the URL ?
Freddie
On 2 Dez., 15:05, Brian Clapper <b...@clapper.org> wrote:
> > I use curn.bat on windows and want to call the curn-read via command
> > shell. I want to change the URL via command line parameter and not
> > directly via URL-TAG in config file. How can I do this ?
> > Thanks for reply !
> It is not possible to do what you want. The only way to configure the URLs curn
> reads is via the configuration file.
> It's certainly possible to write a script that modifies the contents of the
> configuration file, but curn, itself, does not support that capability.
> --
> -Brian
> Brian Clapper,http://www.clapper.org/bmc/ > Illinois isn't exactly the land that God forgot -- it's more like the
> land He's trying to ignore.
> What a pity.... but maybe is there a way to set the url via file, e.g. > "URL://${program:cwd}/something.txt" or something like that ? > We try to create a generic changelog for every build of our software. > So I guess the editting of this config is not the best generic way... > So maybe there is a way to get enviroment variables to set the URL ?
Yes, you can use an environment variable, e.g.:
URL: ${env:CURN_URL} -- -Brian
Brian Clapper, http://www.clapper.org/bmc/ An infinite number of mathematicians walk into a bar. The first one orders a beer. The second orders half a beer. The third, a quarter of a beer. The bartender says "You're all idiots", and pours two beers.
> > What a pity.... but maybe is there a way to set the url via file, e.g.
> > "URL://${program:cwd}/something.txt" or something like that ?
> > We try to create a generic changelog for every build of our software.
> > So I guess the editting of this config is not the best generic way...
> > So maybe there is a way to get enviroment variables to set the URL ?
> Yes, you can use an environment variable, e.g.:
> URL: ${env:CURN_URL}
> --
> -Brian
> Brian Clapper,http://www.clapper.org/bmc/ > An infinite number of mathematicians walk into a bar. The first one orders
> a beer. The second orders half a beer. The third, a quarter of a beer. The
> bartender says "You're all idiots", and pours two beers.