lynx -cfg=cfg.file $URL

this works with the following contents of the .cfg file:

SET_COOKIES:TRUE
ACCEPT_ALL_COOKIES:TRUE
PERSISTENT_COOKIES:TRUE
COOKIE_FILE:cookie.file

however, this does not:

lynx -cookies=1 -accept_all_cookies=1 -cookie_file=cookie.file $URL

if it's going to be of any help - here's the trace:

parse_arg(arg_name=-cookies=1, mask=1, count=2)
parse_arg lookup(cookies=1)
...skip (mask 1/4)
parse_arg(arg_name=-accept_all_cookies=1, mask=1, count=3)
parse_arg lookup(accept_all_cookies=1)
...skip (mask 1/4)
parse_arg(arg_name=-cookie_file=cookie.file, mask=1, count=4)
parse_arg lookup(cookie_file=cookie.file)
...skip (mask 1/4)
parse_arg(arg_name=$URL, mask=1, count=5)
parse_arg startfile:$URL

obvious question, why? the actual difference, from what i see, is the inability to trigger "PERSISTENT_COOKIES:TRUE" by command-line options in lynx. or, maybe, i have overlooked/misunderstood something?

link|improve this question

45% accept rate
1  
yes, indeed, i have verified that the issue is only related to that one setting, as this seems to work just fine: lynx -cfg=dupe.cfg -cookies -accept_all_cookies -cookie_file=cookie.file $URL, the only thing "dupe.cfg" contains is "PERSISTENT_COOKIES:TRUE". however, my question still remains - how does one activate this setting via the command line? – XXL Jul 24 '11 at 15:26
great Q - +1 in hopes of finding you an answer. – mjb Jul 24 '11 at 16:20
feedback

1 Answer

Try setting -cookie_save_file to the same file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.