-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfetchmail.README.txt
More file actions
43 lines (25 loc) · 1.6 KB
/
fetchmail.README.txt
File metadata and controls
43 lines (25 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# …
# Q: is my $HOME/.fetchmail.pid (jhk00-domains@h20.hostsharing.net) still valid?
$ readlink /proc/$( head -1 .fetchmail.pid )/exe
/usr/bin/fetchmail
# A: the result should be as shown above
N.B. :
add this to the resp. crontab:
##0 0,8,16 * * * readlink /proc/$( head -1 .fetchmail.pid )/exe
0 0,8,16 * * * ls -l /proc/$( head -1 .fetchmail.pid )/exe
the latter yields this (including *failed* – in case things go wrong):
SUBJECT: Cron <jhk00-domains@h20> ls -l /proc/$( head -1 $HOME/.fetchmail.pid )/exe (failed);
================================================================================
# as described here:
# ~/git-servers/ber.jochen.hayek.name/johayek/misc/DOTfiles-shuttle/.fetchmailrc
$ ssh -n jhk00-domains@jhk00.hostsharing.net 'tail -500 var/log/fetchmail.log | bin/fetchmail--extract_fingerprints.pl';
$ ssh -n jhk00-domains@jhk00.hostsharing.net 'bin/fetchmail--extract_fingerprints.pl var/log/fetchmail.log';
N.B. :
add this to the resp. crontab:
1 0 * * * bin/fetchmail--extract_fingerprints.pl var/log/fetchmail.log
2 0 * * * tail -500 var/log/fetchmail.log | bin/fetchmail--extract_fingerprints.pl
# after updating / adding the new fingerprints
# and git-wise transfer to the other side
# proceed as described below "because of git repositories set up on hostsharing.net" in .../.fetchmailrc !!!
$ ssh -A jhk00-domains@jhk00.hostsharing.net
jhk00-domains@h20 $ $HOME/git-servers/github.com/JochenHayek/misc/fetchmail--restart_with_new_logfile.sh