[Dxspider-support] Crontab running ?
Michael Serowik
maserowik at verizon.net
Fri Oct 11 23:55:10 BST 2024
In Debian 12, the traditional syslog system has been replaced with systemd-journald. This means that the old log files like syslog, messages, auth.log are no longer used. Instead, all system logs are now stored in a centralized journal, which is accessible using the journalctl command.
To view the system logs, you can use the following command:
journalctl
This will display all of the logs in the journal. You can also filter the logs by using options like -p (priority) and -u (unit). For example, to view only the logs from the syslog unit, you would use the following command:
journalctl -u syslog
You can also specify a start and end time for the logs you want to view. For example, to view the logs from the past hour, you would use the following command:
journalctl --since "1 hour ago"
Mike-N3bsq
From: Dxspider-support <dxspider-support-bounces at tobit.co.uk> On Behalf Of Erik Schott via Dxspider-support
Sent: Friday, October 11, 2024 6:45 PM
To: dxspider-support at tobit.co.uk
Cc: Erik Schott <fhaschott at gmail.com>
Subject: [Dxspider-support] Crontab running ?
Dear all,
Is there a way how I can check that cronjobs are running ?
In this case when I checked the Kepler sets (sh/sat), I get the following:
Satellites available/Age of Keps (days):-
AO-07: 6827 AO-10: 6828
AO-16: 6827 AO-27: 6827
AO-40: 6826 AO-51: 6826
FENGYUN1: 6826 FO-29: 6827
If I read it correct, there are very old datasets but I may be wrong.
I found a cronjob for updating the keppler sets and put it in the crontab
# AutoUpdate Keps (At 02:00 on Tuesday, Thursday, and Saturday)
0 2 * * 2,4,6 spawn("cd /tmp | wget -qN http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt & /spider/perl/convkeps.pl -p nasabare.txt &")
5 2 * * 2,4,6 run_cmd("load/keps")
10 2 * * 2,4,6 spawn("rm /tmp/nasabare.txt")
How do I know or can I check that the job has successfully completed. (Thursday has passed with the cronjob active)
I tried to do the commands one by one but then I get an error.
I can’t find the cron log, something strange going on with logs and Debian 12.
sysop at hamradio:/tmp$ ~$ wget -qN http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt
sysop at hamradio:/tmp$ /home/sysop/spider/perl/convkeps.pl -p nasabare.txt
120 keps converted
sysop at hamradio:/tmp$ /home/sysop/spider/cmd/load/kepspl
/home/sysop/spider/cmd/load/keps.pl: line 4: syntax error near unexpected token `$self,'
/home/sysop/spider/cmd/load/keps.pl: line 4: `my ($self, $line) = @_;'
Code keps.pl
#
# load the the keps file after changing it
#
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 5;
if ($line =~ /^(\d+)$/) {
my $msgno = $1;
my $mref = DXMsg::get($msgno);
return (1, $self->msg('m4', $msgno)) unless $mref;
return (1, $self->msg('sat5')) unless $mref->subject =~ /\b\d{3,6}\.AMSAT\b/i;
my $fn = DXMsg::filename($msgno);
my $fh = new IO::File "$main::root/perl/convkeps.pl $fn |";
my @in = <$fh>;
$fh->close;
return (1, @in) if @in;
}
my @out = Sun::load($self);
@out = ($self->msg('ok')) if !@out;
return (1, @out);
Server: dxcluster.pa0esh.nl
OS: Debian 12
Software DXSpider V1.57 build 547
Thanks in advance for some guidance…
Erik,
PA0ESH
--
This email has been checked for viruses by Avast antivirus software.
www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20241011/24e8a2f0/attachment-0001.htm>
More information about the Dxspider-support
mailing list