Thread View: de.comm.software.newsserver
8 messages
8 total messages
Started by Wolfgang Bauer
Sun, 07 Mar 2021 16:16
leafnode cronjob
Author: Wolfgang Bauer
Date: Sun, 07 Mar 2021 16:16
Date: Sun, 07 Mar 2021 16:16
17 lines
540 bytes
540 bytes
Servus. Ich habe leafnode nun eingerichtet. root@wolfgang-B:/home/wolfgang# fetchnews funktioniert. Nun möchte ich das mit einem cronjob automatisieren. leafnode soll alle 15 Minuten Beiträge vom Server holen. Mein Ansatz */15 * * * * /usr/sbin/fetchnews root@wolfgang-B:/home/wolfgang# crontab -u news -e öffnet mit nano und der ist mir unübersichtlich. Außerdem werden Einträge mit ^O nicht gespeichert. Kann ich den cronjob händisch erstellen, in welchem Verzeichnis? -- Wie man sein Kind nicht nennen sollte: Klara Korn
Re: leafnode cronjob
Author: Juergen Ilse
Date: Sun, 07 Mar 2021 16:49
Date: Sun, 07 Mar 2021 16:49
22 lines
774 bytes
774 bytes
Hallo, Wolfgang Bauer <wolfgang-bauer@gmx.eu> wrote: > Servus. > > Ich habe leafnode nun eingerichtet. > root@wolfgang-B:/home/wolfgang# fetchnews funktioniert. Nun möchte ich > das mit einem cronjob automatisieren. leafnode soll alle 15 Minuten > Beiträge vom Server holen. Mein Ansatz > > */15 * * * * /usr/sbin/fetchnews > > root@wolfgang-B:/home/wolfgang# crontab -u news -e > > öffnet mit nano und der ist mir unübersichtlich. Laut man-page benutzt "crontab -e" den Editor, der in der Variablen EDITOR (oder der Variablen VISUAL) angegeben ist und einen eincompilierten Default (meistens vi). Welche Environment Variable Vorrang hat, wenn beide gesetzt sind, bin ich mir im Moment nicht sicher. Tschuess, Juergen Ilse (juergen@usenet-verwaltung.de)
Re: leafnode cronjob
Author: eh41@rrzli.de (V
Date: Sun, 07 Mar 2021 17:50
Date: Sun, 07 Mar 2021 17:50
10 lines
373 bytes
373 bytes
Wolfgang Bauer <wolfgang-bauer@gmx.eu> schrieb: > root@wolfgang-B:/home/wolfgang# crontab -u news -e > > öffnet mit nano und der ist mir unübersichtlich. Außerdem werden > Einträge mit ^O nicht gespeichert. export EDITOR=emacs (vor dem Aufruf von crontab) > Kann ich den cronjob händisch erstellen, in welchem Verzeichnis? man cron. Sollte man aber nicht machen...
Re: leafnode cronjob
Author: Thomas Hochstein
Date: Sun, 07 Mar 2021 17:51
Date: Sun, 07 Mar 2021 17:51
31 lines
999 bytes
999 bytes
Wolfgang Bauer schrieb: > Ich habe leafnode nun eingerichtet. > root@wolfgang-B:/home/wolfgang# fetchnews funktioniert. Nun möchte ich > das mit einem cronjob automatisieren. leafnode soll alle 15 Minuten > Beiträge vom Server holen. Mein Ansatz > > */15 * * * * /usr/sbin/fetchnews > > root@wolfgang-B:/home/wolfgang# crontab -u news -e > > öffnet mit nano und der ist mir unübersichtlich. Dann such Dir halt einen aus, der Dir besser gefällt: | update-alternatives --config editor > Kann ich den cronjob händisch > erstellen, in welchem Verzeichnis? | thh@thangorodrim:~$ man 1 crontab [...] | DESCRIPTION | crontab is the program used to install, deinstall or list the | tables used to drive the cron(8) daemon in Vixie Cron. Each | user can have their own crontab, and though these are files in | /var/spool/cron/crontabs, they are not intended to be edited | directly. -thh -- Informationen rund um Usenet und Newsserver: <https://th-h.de/net/usenet/>
Re: leafnode cronjob
Author: Wolfgang Bauer
Date: Sun, 07 Mar 2021 19:20
Date: Sun, 07 Mar 2021 19:20
42 lines
1266 bytes
1266 bytes
Thomas Hochstein schrieb: > Wolfgang Bauer schrieb: > >> Ich habe leafnode nun eingerichtet. >> root@wolfgang-B:/home/wolfgang# fetchnews funktioniert. Nun möchte ich >> das mit einem cronjob automatisieren. leafnode soll alle 15 Minuten >> Beiträge vom Server holen. Mein Ansatz >> >> */15 * * * * /usr/sbin/fetchnews >> >> root@wolfgang-B:/home/wolfgang# crontab -u news -e >> >> öffnet mit nano und der ist mir unübersichtlich. > > Dann such Dir halt einen aus, der Dir besser gefällt: > | update-alternatives --config editor > >> Kann ich den cronjob händisch >> erstellen, in welchem Verzeichnis? > > | thh@thangorodrim:~$ man 1 crontab > [...] > | DESCRIPTION > | crontab is the program used to install, deinstall or list the > | tables used to drive the cron(8) daemon in Vixie Cron. Each > | user can have their own crontab, and though these are files in > | /var/spool/cron/crontabs, they are not intended to be edited > | directly. > > -thh Ich habe in die ~/.bashrc den Eintrag export EDITOR=/usr/bin/emacs damit öffnet wolfgang@wolfgang-B:~$ crontab -e emacs und da ist eingetragen */15 * * * * /usr/sbin/fetchnew Aber es tut nicht. -- Wichtig ist, daß man nie aufhört zu fragen... Albert Einstein
Re: leafnode cronjob
Author: Wolfgang Bauer
Date: Sun, 07 Mar 2021 20:35
Date: Sun, 07 Mar 2021 20:35
22 lines
596 bytes
596 bytes
Wolfgang selbst schrieb: > Ich habe in die ~/.bashrc den Eintrag > export EDITOR=/usr/bin/emacs > damit öffnet > wolfgang@wolfgang-B:~$ crontab -e > emacs und da ist eingetragen > */15 * * * * /usr/sbin/fetchnew > > Aber es tut nicht. Da war der Cronjob aber nicht für news. Ich habe es nochmal so gemacht wie es in steht. https://www.selflinux.org/selflinux/html/leafnode04.html root@linux ~# crontab -u news -e So funktioniert es nun. Danke -- Natürlicher Verstand kann fast jeden Grad von Bildung ersetzen, aber keine Bildung den natürlichen Verstand. Arthur Schopenhauer
Re: leafnode cronjob
Author: Thomas Hochstein
Date: Sun, 07 Mar 2021 23:53
Date: Sun, 07 Mar 2021 23:53
5 lines
131 bytes
131 bytes
Wolfgang Bauer schrieb: > Ich habe in die ~/.bashrc den Eintrag > export EDITOR=/usr/bin/emacs Prima. Dann passt es jetzt ja.
Re: leafnode cronjob
Author: Wolfgang Bauer
Date: Tue, 09 Mar 2021 18:29
Date: Tue, 09 Mar 2021 18:29
11 lines
217 bytes
217 bytes
Am 07.03.21 23:53, schrieb Thomas Hochstein: >Wolfgang Bauer schrieb: > >> Ich habe in die ~/.bashrc den Eintrag >> export EDITOR=/usr/bin/emacs > >Prima. Dann passt es jetzt ja. -- Freundliche Grüße Wolfgang
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads