1 |
'Sup Gentoo? |
2 |
|
3 |
I'm working on a daily cron job to email me daily. It happens to be |
4 |
details of new shows available for download on the BBC's iPlayer |
5 |
website. OMG! get_iplayer rocks! |
6 |
|
7 |
If I have the following in my crontab: |
8 |
|
9 |
0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v |
10 |
^Added |
11 |
|
12 |
Then the email's subject is ugly. |
13 |
|
14 |
A bit of Googling [1] shows me that: |
15 |
|
16 |
0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v |
17 |
^Added | mailx -s "iPlayer Daily Summary" stroller |
18 |
|
19 |
which gives a neater subject line. |
20 |
|
21 |
However the "from: " address is stroller@×××××××××.domain, which I |
22 |
feel is a little untidy. |
23 |
|
24 |
It's probably OCD of me to care, but I would prefer the mails to |
25 |
appear in my mail client as from "iPlayer". |
26 |
|
27 |
Can anyone suggest a better solution than writing a wrapper script as |
28 |
described at: |
29 |
http://www.mail-archive.com/freebsd-questions@×××××××.org/msg223401.html |
30 |
please? |
31 |
|
32 |
This is a great answer, but it means I have extra wrapper scripts |
33 |
cluttering up my system, and since I will probably want multiple |
34 |
summaries (say weekly reports of "drama" and "comedy" categories, |
35 |
delivered on different days) it would mean I need either multiple |
36 |
wrapper scripts, or a single much more complicated one. |
37 |
|
38 |
I am probably making my life complicated just for the pernicketyness |
39 |
of it, but any suggestions gratefully received. |
40 |
|
41 |
Stroller. |
42 |
|
43 |
|
44 |
|
45 |
[1] http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1261393668323+28353475&threadId=886847 |