Re: mythweb 0.27
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
このメッセージは次のスレッドの一部です:
日付によるスレッドの仕分け
Lennart Sorensen 、
2013-10-04 21:01
Lennart Sorensen 、
2013-10-07 14:19
著者:
Christian Marillat
日付:
2013-10-05 06:51
UTC
To:
dmo-discussion
題目:
Re: mythweb 0.27
"Lennart Sorensen" <lsorense@???> writes:
> On Fri, Oct 04, 2013 at 01:26:02PM -0400, Lennart Sorensen wrote:
>> On Fri, Oct 04, 2013 at 06:39:12PM +0200, Christian Marillat wrote:
[...]
> Hmm, that didn't actually quite work.
>
> This seems to:
>
> cat $INPUT | perl -pe "
> s/(^[ \t]*setenv[ \t]+db_server[ \t]+\")[^\"]*\"/\$1\$ENV{'hostname'}\"/g;
> s/(^[ \t]*setenv[ \t]+db_name[ \t]+\")[^\"]*\"/\$1\$ENV{'database'}\"/g;
> s/(^[ \t]*setenv[ \t]+db_login[ \t]+\")[^\"]*\"/\$1\$ENV{'mythtv_username'}\"/g;
> s/(^[ \t]*setenv[ \t]+db_password[ \t]+\")[^\"]*\"/\$1\$ENV{'mythtv_password'}\"/g;
> " > $NEW
Works for me. One change, I need to export all variables at the top of
the script.
Thanks.
Christian