Difference between revisions of "Expired programs"

From MythTV Official Wiki
Jump to: navigation, search
(Don't put articles in a category and subcategory of the same hierarchy.)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
   grep "autoexpire:" /var/log/mythtv/mythbackend.log | awk '{if ( $NF == "MBytes" && $(NF-1) > 600) print  }'
 
   grep "autoexpire:" /var/log/mythtv/mythbackend.log | awk '{if ( $NF == "MBytes" && $(NF-1) > 600) print  }'
  
To see capture the current expiry list you can list this using the backend command
+
To capture the current expiry list you can list this using the backend command.
 +
ie this shows programs which are about to expire based on storage space availibility
  
 
   mythbackend --printexpire
 
   mythbackend --printexpire
Line 28: Line 29:
 
Supernatural: "Nightmare"                3322MiB  Mon May 1 20:40:00 2006  [  1]
 
Supernatural: "Nightmare"                3322MiB  Mon May 1 20:40:00 2006  [  1]
 
</pre>
 
</pre>
[[Category:Knowledge Base]]
+
 
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Latest revision as of 19:50, 19 May 2006

Program Expiry

To find out recently expired Programs you can grep this from the mythbackend log file using something like the following:

 grep "autoexpire:" /var/log/mythtv/mythbackend.log | awk '{if ( $NF == "MBytes" && $(NF-1) > 600) print  }'

To capture the current expiry list you can list this using the backend command. ie this shows programs which are about to expire based on storage space availibility

 mythbackend --printexpire

Which should show you something like:

2006-05-19 18:09:57.584 Using runtime prefix = /usr
2006-05-19 18:09:57.765 New DB connection, total: 1
2006-05-19 18:09:57.794 Connected to database 'mythconverg' at host: localhost
2006-05-19 18:09:57.797 Current Schema Version: 1124
2006-05-19 18:09:57.896 Newest Schema Version : 1123
2006-05-19 18:09:57.897 New DB connection, total: 2
2006-05-19 18:09:57.908 Connected to database 'mythconverg' at host: localhost
2006-05-19 18:09:57.921 Setting Lock for Database Schema upgrade. If you see a long pause here it means the Schema is already locked and is being upgraded by another Myth process.
2006-05-19 18:09:57.933 New DB connection, total: 3
2006-05-19 18:09:57.934 Connected to database 'mythconverg' at host: localhost
2006-05-19 18:09:57.952 Database Schema upgrade complete, unlocking.
MythTV AutoExpire List (programs listed in order of expiration)
Las Vegas: "And Here's Mike With The We  3949MiB  Thu Apr 20 19:30:00 2006 [  0]
Las Vegas: "Urban Legends"               3949MiB  Thu Apr 27 19:30:00 2006 [  0]
Treks In A Wild World                    1231MiB  Fri Apr 28 15:00:00 2006 [  0]
Y?                                       2228MiB  Sat Apr 29 09:00:00 2006 [  0]
Whale Rider                              6992MiB  Sun Apr 30 20:30:00 2006 [  0]
Mission Impossible II                    8837MiB  Sun Apr 30 22:35:00 2006 [  0]
Supernatural: "Nightmare"                3322MiB  Mon May 1 20:40:00 2006  [  1]