[mythtv-users] MythTV Status in your MOTD (and email) - Version 0.6.2

Marc drayson at net1plus.com
Mon Jan 7 03:47:47 UTC 2008


> 
> Andrew,
> The patch worked and it made sense. The user I logged in with on the
> remote
> backend/frontend system did not have a mysql.txt file setup which is
> why it
> was unable to connect to the API. Once I logged in as mythuser it
> worked
> fine.
> 
> I am using the tarball on a Gentoo system. I modified the mythtv-
> update-motd
> file to use the /etc/motd. However I did not have a motd file to begin
> with
> so nothing happened. I attempted to add the line to the motd manually
> and I
> guess I did it wrong. Your install procedure doesn't work on my
> machine.
> When I run it I get
> ./mythtv-update-motd: line 3: /etc/default/mythtv-status: No such file
> or
> directory
> 
> I copied the file to that location manually and then rerun the setup
> and get
> mythuser at asgard /root/mythtv-status-0.6.2/bin $ ./mythtv-update-motd
> /etc/default/mythtv-status: line 11: use: command not found
> /etc/default/mythtv-status: line 12: use: command not found
> /etc/default/mythtv-status: line 13: use: command not found
> /etc/default/mythtv-status: line 14: use: command not found
> /etc/default/mythtv-status: line 15: use: command not found
> /etc/default/mythtv-status: line 16: use: command not found
> /etc/default/mythtv-status: line 17: use: command not found
> /etc/default/mythtv-status: line 18: use: command not found
> /etc/default/mythtv-status: line 21: my: command not found
> /etc/default/mythtv-status: line 22: my: command not found
> /etc/default/mythtv-status: line 23: my: command not found
> /etc/default/mythtv-status: line 24: my: command not found
> /etc/default/mythtv-status: line 25: my: command not found
> /etc/default/mythtv-status: line 26: my: command not found
> /etc/default/mythtv-status: line 27: my: command not found
> /etc/default/mythtv-status: line 28: my: command not found
> /etc/default/mythtv-status: line 29: my: command not found
> /etc/default/mythtv-status: line 30: my: command not found
> /etc/default/mythtv-status: line 31: my: command not found
> /etc/default/mythtv-status: line 32: my: command not found
> /etc/default/mythtv-status: line 33: my: command not found
> /etc/default/mythtv-status: line 35: my: command not found
> /etc/default/mythtv-status: line 37: syntax error near unexpected token
> `newline'
> /etc/default/mythtv-status: line 37: `GetOptions('
> 
> If I run /etc/default/mythtv-status myself I get a valid response.
> mythuser at asgard /root/mythtv-status-0.6.2/bin $ /etc/default/mythtv-
> status
> -h niflheim
> 
> MythTV status for niflheim
> ==========================
> Status...........: Sun Jan 6 2008, 10:37 PM
> Total Disk Space.: Total space is 1,085,842 GB, with 756,980 GB used
> (69.7%)
> Next Recording In: 16 Hours, 22 Minutes
> 
> Encoders:
> asgard (1) - Idle
> niflheim (2) - Idle
> niflheim (3) - Idle
> niflheim (4) - Idle
> niflheim (5) - Idle
> niflheim (6) - Idle
> 
> Scheduled Recordings:
> 2008-01-07 15:00:00 - Doctor Who (Sci-Fi Channel)
> 
> 
> Also, how did you get the text to appear in color on the screenshot you
> have
> on the site? I want to have the % and the tuner status in color.
> 
> Marc
> 
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Yeah responding to myself..
I figured out the colors. 
I added the "/etc/default/mythtv-status -h niflheim" to the motd file
directly. I know I did it wrong. Just need to know how to do it right.

Marc




More information about the mythtv-users mailing list