Author |
Message |
stinga
|
Posted: Thu Mar 29, 2012 3:22 am |
|
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location:
Cornwall - uk
|
G'day, Is there anything that will delete these files? Code: drwxr-xr-x 2 root root 4096 Mar 24 00:02 2012-03-21 drwxr-xr-x 2 root root 4096 Mar 25 00:02 2012-03-22 drwxr-xr-x 2 root root 4096 Mar 28 00:02 2012-03-23 drwxr-xr-x 2 root root 4096 Mar 28 00:02 2012-03-24 drwxr-xr-x 2 root root 4096 Mar 28 00:02 2012-03-25 drwxr-xr-x 2 root root 4096 Mar 29 00:02 2012-03-26 drwxr-xr-x 2 root root 4096 Mar 27 00:08 2012-03-27 drwxr-xr-x 2 root root 4096 Mar 28 13:08 2012-03-28 drwxr-xr-x 2 root root 4096 Mar 29 00:05 2012-03-29
I don't hve many yet, but they will soon mount up!
_________________ -- stinga
as of 17-May-2018 R8.2 - sort of working. MB: gigabyte GA-P43-ES3G | RAM: 2GB VGA: PNY Nvidia GT240 1GB 4 x Technisat skystar 2 dvb | 1 x TBS6981 dvb-s2 pata: 1x300Gb | sata: 2x1Tb 2x2Tb Problems: TBS6981 Does not work.
|
|
Top |
|
 |
rsay
|
Posted: Tue Aug 07, 2012 12:59 pm |
|
Joined: Fri Nov 04, 2005 7:11 am
Posts: 61
|
Those are directories containing your myth related log data, divided up by day. I think its actually a pretty clever way to keep the logs more readable. They should get automatically logrotated out before they become a problem, so you can delete them, but you don't have to delete them.
_________________ BE: R8.4, HVR2250, MCE media center remote, GigaByte GA-EP43-UD3L, 2gb ram
FE: Linhes 8.4, Mythbuntu, Linux Mint DE
|
|
Top |
|
 |
Big boy stan
|
Posted: Mon Aug 27, 2012 1:39 pm |
|
Joined: Wed Jan 04, 2006 10:20 am
Posts: 387
Location:
South New Jersey, USA
|
Does anyone understand how the file names are created? My log files start with the name of the computer and end with what appears to be a random number. I am sure there is some system to this but I cant figure out which backend log follows which.
_________________ LINHES 8.6.1 BE/FE - MSI K9N6SGM-V with AMD A64 X2 4600+, 4GB Ram. 1.5TB WD. HDHR Prime. Nvidia GT210. MCE remote. FrontEnd - Dell Vostro 400 3.0GHz Core2Duo NVidia GeForce210. MCE Remote
|
|
Top |
|
 |
welner
|
Posted: Mon Aug 27, 2012 4:08 pm |
|
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 125
|
the number is the pid of the process Code: [mythtv@mythtv log]$ cd 2012-08-27 [mythtv@mythtv 2012-08-27]$ ls -la total 216 drwxr-xr-x 2 root root 4096 Aug 27 08:08 . drwxr-xr-x 18 root root 4096 Aug 27 03:11 .. -rw-r--r-- 1 root root 278 Aug 27 08:08 mythtv_dhcpcd.log -rw-r--r-- 1 root root 1754 Aug 27 05:46 mythtv_kernel.log -rw-r--r-- 1 root root 37233 Aug 27 16:27 mythtv_messages.log -rw-r--r-- 1 root root 50057 Aug 27 18:21 mythtv_mythbackend.31808.log -rw-r--r-- 1 root root 8747 Aug 27 03:02 mythtv_mythbackend.5300.log -rw-r--r-- 1 root root 27704 Aug 27 02:14 mythtv_mythfilldatabase.26664.log -rw-r--r-- 1 root root 485 Aug 27 03:38 mythtv_mythfrontend.0.log -rw-r--r-- 1 root root 584 Aug 27 03:38 mythtv_mythfrontend.2151.log -rw-r--r-- 1 root root 274 Aug 27 03:11 mythtv_php.log -rw-r--r-- 1 root root 303 Aug 27 13:38 mythtv_smartd.log -rw-r--r-- 1 root root 33608 Aug 27 14:58 mythtv_smbd.log -rw-r--r-- 1 root root 1695 Aug 27 16:27 mythtv_sshd.log -rw-r--r-- 1 root root 273 Aug 27 04:25 mythtv_sudo.log -rw-r--r-- 1 root root 1111 Aug 27 10:20 mythtv_su.log [mythtv@mythtv 2012-08-27]$ ps -ef | grep 31808 mythtv 11859 734 0 18:25 pts/2 00:00:00 grep 31808 mythtv 31808 31776 0 03:11 ? 00:00:34 /usr/bin/mythbackend -q --syslog local6 [mythtv@mythtv 2012-08-27]$ ps -ef | grep 5300 mythtv 11867 734 0 18:26 pts/2 00:00:00 grep 5300 [mythtv@mythtv 2012-08-27]$ ps -ef | grep 26664 mythtv 11878 734 0 18:26 pts/2 00:00:00 grep 26664 [mythtv@mythtv 2012-08-27]$ ps -ef | grep 2151 mythtv 2151 2006 0 Aug11 ? 02:29:31 /usr/bin/mythfrontend -d --syslog local6 mythtv 11888 734 0 18:26 pts/2 00:00:00 grep 2151 in the above example, there are two backend logs. one with a pid of 5300 and the other with a pid of 31808. the pid 5300 probably no longer exists because of my 3 am backup cronjob
_________________ DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.6
|
|
Top |
|
 |
Big boy stan
|
Posted: Mon Aug 27, 2012 6:50 pm |
|
Joined: Wed Jan 04, 2006 10:20 am
Posts: 387
Location:
South New Jersey, USA
|
Seems like it might make more sense to put the time or some sequential number in the file name rather then the PID. With only the PID in the file name, its not easy to follow from one log to the next.
_________________ LINHES 8.6.1 BE/FE - MSI K9N6SGM-V with AMD A64 X2 4600+, 4GB Ram. 1.5TB WD. HDHR Prime. Nvidia GT210. MCE remote. FrontEnd - Dell Vostro 400 3.0GHz Core2Duo NVidia GeForce210. MCE Remote
|
|
Top |
|
 |
jams
|
Posted: Sun Sep 02, 2012 11:01 am |
|
 |
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
doing it by pid is a mythtv "feature", it was done to make debugging easier..but in practice it's just a mess.
|
|
Top |
|
 |
christ
|
Posted: Sun Sep 02, 2012 6:41 pm |
|
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location:
Ottawa, Canada
|
jams wrote: but in practice it's just a mess. You're not kidding!!! At least the log files do have the full time stamp for each entry though. So it should be straight forward for some clever script writer to create a myth log viewer. Probably just a reassembly based on time stamp which you can pipe into your favourite editor or less/more.
|
|
Top |
|
 |