<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 30, 2020 at 6:06 PM Mark Perkins <<a href="mailto:perkins1724@hotmail.com">perkins1724@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;line-height:1.3;color:rgb(31,73,125)" id="gmail-m_-1302797371354379386nine_body_n173a1b-fcf2f" dir="auto">
<div dir="auto"><br>
</div>
</div>
<div id="gmail-m_-1302797371354379386quoted_header_n173a1b-fcf2f" dir="auto">
<hr style="border:none;height:1px;color:rgb(225,225,225);background-color:rgb(225,225,225)">
<div style="border:none;padding:3pt 0cm 0cm" dir="auto"><span style="font-size:11pt;font-family:Calibri,Arial,Helvetica,sans-serif"><b>From:</b> Greg Woods <<a href="mailto:greg@gregandeva.net" target="_blank">greg@gregandeva.net</a>><br>
<b>Sent:</b> Thursday, 30 July 2020 11:20 pm<br>
<b>To:</b> Discussion about MythTV<br>
<b>Subject:</b> Re: [mythtv-users] mythtv XMLTV wiki instructions<br>
</span></div>
</div>
<div id="gmail-m_-1302797371354379386quoted_body_n173a1b-fcf2f" dir="auto">
<div dir="auto"><br type="attribution">
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div>
<div dir="ltr">On Wed, Jul 29, 2020 at 7:07 PM Mark Perkins <<a href="mailto:perkins1724@hotmail.com" target="_blank">perkins1724@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto">
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">
<div dir="auto"><br>
</div>
</div>
</blockquote>
<div dir="auto">
<div dir="auto">Interesting. For me:</div>
<div dir="auto">bem echo \$HOME </div>
<div dir="auto"><br>
</div>
<div dir="auto">Is a different result to:</div>
<div dir="auto">bem echo $HOME</div>
<div dir="auto"><br>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>That is because, in the latter case, $HOME is expanded in your current shell, before the command line is executed. When the $ is escaped, as in the first example, then the "$HOME" is expanded  when the echo command is actually executed, in a sudo subshell.</div>
<div><br>
</div>
<div>I would expect the second case to produce the same result as just doing "echo $HOME".</div>
<div><br>
</div>
<div dir="auto">
<div dir="auto">--Greg</div>
</div>
<div dir="auto">
<div dir="auto"><br>
</div>
</div>
</div>
</div>
</blockquote>
<div dir="ltr">
<div>
<div dir="auto">
<div dir="auto">Exactly. I'm puzzled as to how others don't get the expansion in the originating shell in the latter case but as others have said wiki works for them. </div>
</div>
</div>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote>
</div>
</div><br></blockquote><div>I'm one of the ones who says I follow the wiki verbatim. However, I haven't studied it in a while since I just go to the section on installing XMLTV and then the section on the tv_grab_zz_sdjson_sqlite grabber setup.  Once I realized the key was to do those commands as user 'mythtv' I always did my standard switching users as sudo su mythtv. BTW, I make sure user mythtv has the bash shell as it's default so you can see the user and current directory before the $ on every command.  My first steps anytime I've just switched users is to; 'whoami' and 'pwd' to make sure.  I'm the guy who did del *.* in CPU back in the '80 from root and learned to triple check where I am and who I am before anything important. When you are as old as I am you really have to do that :-)</div><div><br></div><div>Jim A<br><br></div></div></div>