[Dxspider-support] [sysops] Temp Files..
Howard Leadmon
howard at leadmon.net
Tue Oct 8 01:26:20 CEST 2019
You know, maybe I made this sucker, I have been running DXspider that
long, I honestly don't remember.
Here is what is in the script:
#!/bin/sh
#
# Crontab script for DXSpider to verify it's running under FreeBSD
# by WB3FFV
#
###############################################################
# CONFIGURATION - Set paths to DXSpider Software #
###############################################################
# Set to DXSpider root directory
DXSPATH=/usr/local/spider/
# Name of the pid file
DXSPIDF=/usr/local/spider/local/cluster.lck
# Name of the executable
DXSPROG=perl/cluster.pl
# Name of process to look for
DXSSRCH=cluster
# Parameters to pass to the executable
DXSARGS=""
#DXSARGS="-debug"
###############################################################
# DON'T EDIT ANYTHING BELOW #
###############################################################
PATH=/bin:/usr/bin:/usr/local/bin
DXSPID=
cd $DXSPATH
if [ -f $DXSPIDF ]
then
DXSPID=`cat $DXSPIDF`
if [ `ps ax| grep $DXSSRCH | grep $DXSPID | grep -v -c grep` = 1 ]
then
exit
fi
rm -f $DXSPIDF
fi
./$DXSPROG $DXSARGS
Maybe I will just do the redirect in the script, as it's served me
well for years, till you drop all of that from stdout..
73's...
---
Howard Leadmon - howard at leadmon.net
PBW Communications, LLC
http://www.pbwcomm.com
On 10/7/2019 7:20 PM, Dirk Koopman wrote:
> On 07/10/2019 23:22, Howard Leadmon wrote:
>> # Set the path for executing cron jobs
>> PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
>> * * * * * /usr/local/sbin/dxspider.chk
>>
>
> What's in dxspider.chk? That is likely to be a shell script. That's
> probably what you will need to modify with a >/dev/null 2>&1 . Also
> sticking it in cron is what the problem actually is. It will be
> creating a file of the console output for the mailer to send to you.
> If there is no mailer then that file will just get bigger and bigger.
>
> This may give you some options as a replacement:
>
> https://forums.freebsd.org/threads/systemd-alternative-on-freebsd.59932/
>
> But I shall be switching off console output (by default) from all
> variants of DXSpider tomorrow and they will be available in git. I'll
> put out a message on here when it's done.
>
> 73 Dirk G1TLH
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20191007/0b87c277/attachment.html>
More information about the Dxspider-support
mailing list