I'm In Need of a Null Directory
| Author |
Message |
|
richb
Administrator
Joined: Wed Jul 12, 2006 2:17 pm Posts: 8750 Location: Rochester NY Has thanked: 580 times Have thanks: 956 times
|
Post # 298322
 Re: I'm In Need of a Null Directory
kde-config-cron It shows as Task scheduler in System Settings.
_________________ Forum Rules Guide - How to Ask for Help Link to Wiki Rich
Acer Laptop 5750G: Intel i5, 4 GIG mem, nVidia GT540M/Intel integrated graphics Kubuntu 13.04, KDE 4.10.2 M12 Alpha 2 in VirtualBox
|
| Fri Apr 06, 2012 9:29 am |
|
 |
|
richb
Administrator
Joined: Wed Jul 12, 2006 2:17 pm Posts: 8750 Location: Rochester NY Has thanked: 580 times Have thanks: 956 times
|
Post # 298323
 Re: I'm In Need of a Null Directory
I used the task scheduler to add the two cron jobs you referenced to run at bootup. You can also set it to run daily at any particular time, or on any particular day of the week, month or year. It is quite a useful application.
_________________ Forum Rules Guide - How to Ask for Help Link to Wiki Rich
Acer Laptop 5750G: Intel i5, 4 GIG mem, nVidia GT540M/Intel integrated graphics Kubuntu 13.04, KDE 4.10.2 M12 Alpha 2 in VirtualBox
|
| Fri Apr 06, 2012 9:45 am |
|
 |
|
joany
MEPIS Enthusiast
Joined: Mon Feb 12, 2007 1:45 pm Posts: 4871 Location: Penn's Woods Has thanked: 537 times Have thanks: 398 times
|
Post # 298324
 Re: I'm In Need of a Null Directory
Actually, I did this prior to experimenting with /dev/null. I used the System Settings > Task Manager to schedule the job. The shell script ran properly when I executed it manually, but when I set it up as a chon job, it failed to clear out ~/.thumbnails/normal.
_________________ SimplyMEPIS is SimplyTHEBEST Mepis 8.5; 2.6.32-1-mepis-pae (Internal 2.6.32-12); 4GB RAM 2.4GHz AMD Athlon 4600+ NVidia GeForce 6150 LE; 304.51 Display Driver
|
| Fri Apr 06, 2012 11:18 am |
|
 |
|
kmathern
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 2:26 pm Posts: 5143 Has thanked: 269 times Have thanks: 1400 times
|
Post # 298326
 Re: I'm In Need of a Null Directory
I don't know about M8.5/KDE 4.3, but with the KDE 4.7.4 Task Scheduler I found I didn't need the script I posted earlier. I just pasted in the command I wanted to have run and created the schedule for it. I changed the command to rm ~/.thumbnails/*/*. The cron job seems to be working okay for me in removing the files in both the ~/.thumbnails/large & ~/.thumbnails/normal directories.
|
| Fri Apr 06, 2012 11:47 am |
|
 |
|
joany
MEPIS Enthusiast
Joined: Mon Feb 12, 2007 1:45 pm Posts: 4871 Location: Penn's Woods Has thanked: 537 times Have thanks: 398 times
|
Post # 298327
 Re: I'm In Need of a Null Directory
Thanks. I'll try your variation of using the wild card in the rm command in place of listing the directory names. It seems that including two different tasks in one shell script running as a cron job doesn't work for some reason.
_________________ SimplyMEPIS is SimplyTHEBEST Mepis 8.5; 2.6.32-1-mepis-pae (Internal 2.6.32-12); 4GB RAM 2.4GHz AMD Athlon 4600+ NVidia GeForce 6150 LE; 304.51 Display Driver
|
| Fri Apr 06, 2012 12:37 pm |
|
 |
|
DBeckett
MEPIS Guide
Joined: Sat May 16, 2009 3:59 pm Posts: 2494 Has thanked: 290 times Have thanks: 361 times
|
Post # 298328
 Re: I'm In Need of a Null Directory
Hmm, I don't know why that would be. I use cron jobs often to run fairly complicated scripts containing multiple commands.
_________________ Gigabyte 7ZXE, AMD Athlon XP 2200+, 160GB, 1.5GB, XP, M11, M8.5, Wheezy IBM ThinkPad T43, Intel Pentium M (1.73GHz), 60GB, 1GB, XP, Mepis 11
|
| Fri Apr 06, 2012 2:58 pm |
|
 |
|
joany
MEPIS Enthusiast
Joined: Mon Feb 12, 2007 1:45 pm Posts: 4871 Location: Penn's Woods Has thanked: 537 times Have thanks: 398 times
|
Post # 298332
 Re: I'm In Need of a Null Directory
I don't know either, but when my original shell script ran as a cron job, it would clear ~/.thumbnails/large (1st task) but it failed to clear ~/.thumbnails/normal (2nd task). Strangely enough, when I ran the shell script manually, it would complete both tasks without a problem. UPDATE:I followed kmathern's suggestion of using the task scheduler to run a command directly every 15 minutes: This does clear both sub-directories every 15 minutes.  BTW, I think adding the option "-fr" (force, recursive) helps. So I don't have to mess around with /dev/null after all. I'm marking this thread "Solved" even though I ended up using a different method entirely.
_________________ SimplyMEPIS is SimplyTHEBEST Mepis 8.5; 2.6.32-1-mepis-pae (Internal 2.6.32-12); 4GB RAM 2.4GHz AMD Athlon 4600+ NVidia GeForce 6150 LE; 304.51 Display Driver
|
| Fri Apr 06, 2012 3:51 pm |
|
 |
|
DBeckett
MEPIS Guide
Joined: Sat May 16, 2009 3:59 pm Posts: 2494 Has thanked: 290 times Have thanks: 361 times
|
Post # 298333
 Re: I'm In Need of a Null Directory
Cool. Although it's not as dead-easy as kmathern's solution, another more complicated option would have been to use a ramdisk, assuming you reboot periodically and can spare ~100MB of RAM. I just set one up, linked to .thumbnails, and it works nicely.
_________________ Gigabyte 7ZXE, AMD Athlon XP 2200+, 160GB, 1.5GB, XP, M11, M8.5, Wheezy IBM ThinkPad T43, Intel Pentium M (1.73GHz), 60GB, 1GB, XP, Mepis 11
|
| Fri Apr 06, 2012 4:04 pm |
|
 |
|
lucky9
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 5:54 am Posts: 9164 Location: Tulsa, Oklahoma U.S.A. Has thanked: 2709 times Have thanks: 574 times
|
Post # 298344
 Re: I'm In Need of a Null Directory
What kind of increase in speed did you see? With the RAM disk that is.
_________________ "There is no "slippery slope" toward loss of liberties, only a long staircase where each step downward must first be tolerated by the American people and their leaders." Alan K. Simpson
|
| Fri Apr 06, 2012 8:35 pm |
|
 |
|
DBeckett
MEPIS Guide
Joined: Sat May 16, 2009 3:59 pm Posts: 2494 Has thanked: 290 times Have thanks: 361 times
|
Post # 298348
 Re: I'm In Need of a Null Directory
Surprisingly, not that much, but I didn't really explore it that much before I quit fooling with it. In a split Dolphin I opened some folders of photos and then watched as it (and the .thumbnails folder)) became populated with thumbnails. I didn't notice any difference really.
_________________ Gigabyte 7ZXE, AMD Athlon XP 2200+, 160GB, 1.5GB, XP, M11, M8.5, Wheezy IBM ThinkPad T43, Intel Pentium M (1.73GHz), 60GB, 1GB, XP, Mepis 11
|
| Fri Apr 06, 2012 10:15 pm |
|
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|