Command line variables starting with # fails in linux
Status: Beta
Brought to you by:
rbala
Passing variables to scripts in command line in linux with # fails. I guess bash thinks its as a comment and won't process them.
I recommned changing this character to something else like +-character.
CommandLine.java line 191 in b2.1
Anonymous
+1
It just hits me :-) ... # is the bash comment sign. if you escape it, everyhing works well. would you please document this on your page? thanks chris
not working:
working:
Last edit: Maciej Czapiewski 2012-11-16
The way of defining initial variables of the Web-Harvest context from command line has been modified. Now it accepts only one parameter vars instead of many parameters with # prefix which under Linux were not be passed to the application - # is the line comment character in the Linux shell.
The vars parameter contains a semicolon-separated list of pairs <name>=<value>, where <name> is a name of WH variable and <value> is its value. Below is presented sample command containig vars parameter with two variables a and B:
Of course this modification will be available in Web-Harvest v2.1.
Thanks,
Maciej