cli-backend.sh problem
Pavel Chytil
pchytil@asp.ogi.edu
Thu, 7 Feb 2002 10:36:35 -0800
---------------------- multipart/mixed attachment
Hello,
I am having problems with update of articles in jonah. I am trying to use
cli-backend.sh, but I am getting following output (junk.txt attached) if I save
the output to file and not to /dev/null.
I guess --bind-address 127.0.0.1 should be --bind-address=127.0.0.1 according
to man pages.
Any clues?
Thanks a lot,
Pavel
---------------------- multipart/mixed attachment
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgIkRURC94aHRtbDEtdHJhbnNpdGlvbmFsLmR0ZCI+CjwhLS0gSU1QOiBDb3B5cmlnaHQg
MjAwMSwgVGhlIEhvcmRlIFByb2plY3QuIElNUCBpcyB1bmRlciB0aGUgR1BMLiAtLT4KPCEtLSBI
b3JkZSBQcm9qZWN0OiBodHRwOi8vaG9yZGUub3JnLyB8IElNUDogaHR0cDovL2hvcmRlLm9yZy9p
bXAvIC0tPgo8IS0tICAgIEdOVSBQdWJsaWMgTGljZW5zZTogaHR0cDovL3d3dy5mc2Yub3JnL2Nv
cHlsZWZ0L2dwbC5odG1sICAgLS0+CjxodG1sPjxoZWFkPgo8dGl0bGU+TWFpbCA6OiBXZWxjb21l
PC90aXRsZT4KPGxpbmsgaHJlZj0iL2hvcmRlL2Nzcy5waHA/YXBwPWltcCIgcmVsPSJzdHlsZXNo
ZWV0IiB0eXBlPSJ0ZXh0L2NzcyIgLz4KPC9oZWFkPgoKPGJvZHkgb25sb2FkPSJzZXRGb2N1cygp
Ij4KPHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCIgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4K
PCEtLQoKZnVuY3Rpb24gc2V0Rm9jdXMoKQp7CiAgICBkb2N1bWVudC5pbXBsb2dpbi5pbWFwdXNl
ci5mb2N1cygpOwp9CgpmdW5jdGlvbiBzdWJtaXRfbG9naW4oKQp7CiA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