-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This sounds perfectly reasonable. cron mails you and output the command sends to stdout, so yes, redirecting its output to a file would also prevent cron's email. the crontab lines would look something like:
0 * * * * command > /dev/null && echo "commandTitle" >> done_deals.txt 1 3 * * * cat done_deals.txt && rm done_deals.txt man bash for more info on commandline syntax. you could get even sneakier with an 'if' statement (or a combination of && and ||), outputting different messages for success and failure of the cron job. compiling successful jobs into a list can be useful, but the modifications to cron to get it done are pretty minimal--I doubt there's much call for an external tool in this case. the default behavior for cron accomplishes something functionally equivalent anyway: it informs you by mail if a job fails. So you'd still know (by process of elimination) which jobs succeeded and which failed. - --myk Holly Bostick wrote: > If I: > > Changed the individual job that I don't want mailed, but want > notification of to send it's output to /dev/null (is it only /dev/null, > or will cron still mail me if I output to a text file instead?) *and > then to* echo the name of the job to (let's say) done_deals.txt after > the job completed, and then > > Made a new cron job that runs last in that time period which sent me the > output of cat done_deals.txt (which would hopefully contain the names of > all the jobs that completed, but whose actual output was sent to > /dev/null or whatever) > > would that work? > > It sounds reasonable, although I don't know how to do it (I am so not a > command-line jockey), and it also sounds easily repeatable (for cron > jobs of all time periods, or if new jobs are added to any time period), > which supports it being doable. > > Does this sound flakey? Does this sound useful? And if it does sound > useful, is there any tool that would allow me to create a more global > setup in case I wanted to provide this solution to others (i.e. post it > on the forums as some kind of script, or package it in some way for > Bugzilla)? > > Holly -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCwsrxBOPsJyAQkeARArh+AKCyPhrkqNFdQV4RovfmzBzmjjdr8wCfS6W6 cM+/Ji3FIVOMXNb/djN787g= =SlBP -----END PGP SIGNATURE----- -- gentoo-user@gentoo.org mailing list