HI!

Just been playing around with Rainmeter and I notice that if I want to go look at my desktop and I click on the bottom right square in win7 that minimizes to the desktop, the rainmeter "gadget" gets minimized as well, not letting me read what I want to see. Is there something I can configure to make it stay up? Thanks!


Question: Remove all files in directory except last 20
Answer: The problem you are having is caused because the output of your ls command doesn't contain the path to the file it only contains the filename. When a cron job runs, it runs in the users home directory so when your rm is run, it is looking for files in /home/testuser not /home/testuser/test.

You could fix this with a simple cd command

cd /home/testuser/test &amp;&amp; ls -1tr /home/testusr/test ...


This however isn't great as you are parsing the output of ls which is a Bad IdeaTM see the link for extensive discussion.