<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2019 at 11:10 AM Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.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 dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 2, 2019 at 5:27 PM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.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">On 11/2/19 10:02 AM, Daryl McDonald wrote:<br>
> ***** Total ines in logfile: 29999 /var/log/mythtv/mythbackend.log<br>
<br>
Note the missing 'l' above. Should be: Total lines in logfile. See if it's<br>
correct on your old disk. If so, your new SSD didn't get a proper copy.<br>
<br>
Here's a new copy: <a href="http://paste.ubuntu.com/p/g6Wz2nP5gX/" rel="noreferrer" target="_blank">http://paste.ubuntu.com/p/g6Wz2nP5gX/</a> the only<br>
change is the addition of a Version: line. It was really written just<br>
to demonstrate how to get the most recent run of a MythTV log.<br>
<br>
I'd run it without the pipe to pastebinit, then copy/paste the output<br>
to <a href="http://pastebin.com" rel="noreferrer" target="_blank">pastebin.com</a>. Or try doing a cat of some other (non secret) file and<br>
see if pastebinit works.<br>
<br>
-- <br>
Bill<br>
______________________________________<br></blockquote><div>Hey Bill, can you see what is going wrong here?</div><div><br></div><div> daryl@trieli:~$ sudo ./shortlog.sh mythbackend</div>[sudo] password for daryl: <br><br>Can't find pattern 'mythbackend version:' in /var/log/mythtv/mythbackend.log. Fix PATTERN in: ./shortlog.sh<br>daryl@trieli:~$ cat shortlog.sh<br>#!/bin/bash<br> <br># Save this in a file, for example shortlog.sh and make it executable:<br># chmod 755 shortlog.sh<br># type ./shortlog.sh for help<br> <br>if test -z ${1}; then<br> echo "usage: $0 mythprogramname (e.g. mythbackend)"<br> exit 1<br>fi<br> <br># You may need to adjust one or both of the next two lines<br># for your system:<br>LOGDIRECTORY="/var/log/mythtv"<br>PATTERN="${1} version:"<br> <br>type -P "${1}" > /dev/null<br>if [ $? -eq 1 ]; then<br> /bin/echo "${1} doesn't appear to be installed, or isn't in your PATH, aborting."<br> exit 1<br>fi<br> <br>LOGFILE=$LOGDIRECTORY/${1}.log<br> <br>if test ! -s $LOGFILE; then<br> /bin/echo -e "\n$LOGFILE is empty or doesn't exist. Fix LOGDIRECTORY in: $0"<br> exit 1<br>fi<br> <br>grep "$PATTERN" $LOGFILE 2>&1 > /dev/null<br> <br>if test $? -ne 0; then<br> /bin/echo -e "\nCan't find pattern '$PATTERN' in $LOGFILE. Fix PATTERN in: $0"<br> exit 1<br>else<br> /bin/echo -n -e "\n***** Total ines in logfile: $(wc -l $LOGFILE)\n"<br> LATESTSTART="$(grep -h "$PATTERN" $LOGFILE | tail -1 | cut -c1-17)"<br> /bin/echo -e "\n***** Starting timestamp = '$LATESTSTART'\n"<br> sed --quiet "/^${LATESTSTART}/,\$p" $LOGFILE<br>fi<br>daryl@trieli:~$ sudo ls -al /var/log/mythtv<br>total 307904<br>drwxr-sr-x 2 syslog adm 4096 Nov 6 09:45 .<br>drwxrwxr-x 18 root syslog 4096 Nov 6 09:45 ..<br>-rw-r--r-- 1 syslog adm 18813 Nov 6 11:01 mythbackend.log<br>-rw-r--r-- 1 syslog adm 167891267 Nov 6 09:45 mythbackend.log.1<br>-rw-r--r-- 1 syslog adm 10487573 Sep 27 00:06 mythbackend.log.2<br>-rw-r--r-- 1 syslog adm 28699368 Sep 10 00:08 mythbackend.log.3<br>-rw-r--r-- 1 syslog adm 51473694 Sep 9 00:07 mythbackend.log.4<br>-rw-r--r-- 1 syslog adm 10595180 Sep 4 00:06 mythbackend.log.5<br>-rw-r--r-- 1 syslog adm 10853738 Jun 20 00:07 mythbackend.log.6<br>-rw-r--r-- 1 syslog adm 3694248 Nov 5 22:03 mythcommflag.log<br>-rw-r--r-- 1 syslog adm 1556087 Nov 5 17:01 mythfilldatabase.log<br>-rw-r--r-- 1 syslog adm 1926569 Nov 5 22:31 mythfrontend.log<br>-rw-r--r-- 1 syslog adm 10533184 Oct 16 00:08 mythfrontend.log.1<br>-rw-r--r-- 1 syslog adm 4995026 Nov 6 09:42 mythmetadatalookup.log<br>-rw-r--r-- 1 syslog adm 1486824 Nov 5 22:31 mythpreviewgen.log<br>-rw-r--r-- 1 syslog adm 10666658 Oct 18 00:06 mythpreviewgen.log.1<br>-rw-r--r-- 1 syslog adm 356304 Nov 5 13:26 mythtv-setup.log<br>daryl@trieli:~$ </div></div></blockquote><div><br></div><div>In case anyone else can benefit, this peticular issue was due to an improperly powered mobo, I changed boards, but the 24/4 power supply mobo plug did not match the new board's 24/8 plug requirements. </div></div></div>