Thanks ramram29, but I was more thinking about some 1 liner. I know you can put all of this on 1 line in the crontab, but I have like 10 entries there mailing me stuff every hour, and about 90 others during the day...
So you can understand that I don't want to type so much, and I'm looking for an easy solution. Also it seems so rough to export to a file, which would need to be a default filename (bad idea
, better to have random name then), which I just check if empty and remove it... Just doesn't feels good.
Oh, and I have a good book lying here, it's just no use for what I need to do with it. I already found this kind of solution, but threw it away because of the reasons mentioned above.