Has anyone got a script that they are using to process fidonet mail as it is received. I am struggling with a second net, who processes file echos from Fidonet. so my BBBS just ignores the second file.
I was running bbbs bogus W/B and bbbs btick from a bash script. I feel doing i every minute is a waste of resources
Has anyone got a script that they are using to process fidonet mail as it is received. I am struggling with a second net, who processes file echos from Fidonet. so my BBBS just ignores the second file.
I was running bbbs bogus W/B and bbbs btick from a bash script. I feel doing i
every minute is a waste of resources
Alan Ianson wrote to Sean Rima <=-
Has anyone got a script that they are using to process fidonet mail as
it is
received. I am struggling with a second net, who processes file echos
from
Fidonet. so my BBBS just ignores the second file.
Are you having an issue with the APOD area? I sometimes get an issue
like that with the epod area myself. I have been considering renaming
the files hatched in fsxNet with a different filename. If I know others had issues I would do that for the apod hatches.
I was running bbbs bogus W/B and bbbs btick from a bash script. I feel
doing
i every minute is a waste of resources
I run my mailin.sh script every three minites and it seems to work well for me as long as there are no dupelicate filenames.
There was another way with modem calls to have BBBS exit and do mail and files but I don't think there is a way from ./bbbsd, at least not that I know of.
Janis Kracht wrote to Sean Rima <=-
Has anyone got a script that they are using to process fidonet mail as
it is
received. I am struggling with a second net, who processes file echos
from
Fidonet. so my BBBS just ignores the second file.
I was running bbbs bogus W/B and bbbs btick from a bash script. I feel
doing i
every minute is a waste of resources
I still use the cronfile I set up years ago.. it works well for me:
*/10 * * * * /home/bbbs/mailin.sh
*/16 * * * * /home/bbbs/mailout.sh
mailin.sh:
#!/bin/sh
cd /home/bbbs
./bbbs bogus w > /dev/null 2>&1
./bbbs btick > /dev/null 2>&1
exit
mailout.sh:
#!/bin/sh
cd /home/bbbs
./bbbs bogus r > /dev/null 2>&1
exit
so I run mailin.sh every 10 min. and mailout.sh every 16 min.
Works for me :)
Sean Rima wrote to Alan Ianson <=-
Are you having an issue with the APOD area? I sometimes get an issue
like that with the epod area myself. I have been considering renaming
the files hatched in fsxNet with a different filename. If I know others had issues I would do that for the apod hatches.
Yeah that's the issue I am hitting. I have put it onto a every 1 minute process to get around it, so far so good. It just happens that
sometimes, that both send me the same file almost at the same time
I have been using a basic script. Maybe I will push the boundary of my shell scripting :)
Alan Ianson wrote to Sean Rima <=-
Sean Rima wrote to Alan Ianson <=-
Are you having an issue with the APOD area? I sometimes get an issue
like that with the epod area myself. I have been considering
renaming
the files hatched in fsxNet with a different filename. If I know
others
had issues I would do that for the apod hatches.
Yeah that's the issue I am hitting. I have put it onto a every 1
minute
process to get around it, so far so good. It just happens that
sometimes, that both send me the same file almost at the same time
OK, I have renamed slightly the files going into FSX_IMGE so that shouldn't happen anymore for that area.
I have been using a basic script. Maybe I will push the boundary of
my
shell scripting :)
Mine is also very basic. I have been meaning to beef it up for years but
I haven't gotten to it yet. ;)
My script has a test for usermail.flg and if found runs a mail scan. Something similar could be done based on gotmail.flg that is created on received mail. I'll include it below.
#!/bin/sh
# This script will toss incoming mail and files
export TZUTC="-0700"
export TZ="PDT+7"
cd /bbbs
./bbbs bogus w >/dev/null 2>&1
./bbbs btick >/dev/null 2>&1
./bbbs bfilsort >/dev/null 2>&1
./bbbs bfileidx >/dev/null 2>&1
touch /bbbs/work/rescan.2
# outgoing mail
if [ -f /bbbs/work/usermail.flg ]; then
rm -f /bbbs/work/usermail.flg
cd /bbbs
./bbbs bogus r > /dev/null 2>&1
touch /bbbs/work/rescan.2
fi
The above is my mailin.sh script.
Has anyone got a script that they are using to process fidonet mail as it is received. I am struggling with a second net, who processes file echos from Fidonet. so my BBBS just ignores the second file.
I was running bbbs bogus W/B and bbbs btick from a bash script. I feel doing i
every minute is a waste of resources
Enric Lleal wrote to Sean Rima <=-
Hi Sean,
Has anyone got a script that they are using to process fidonet mail as
it is
received. I am struggling with a second net, who processes file echos
from
Fidonet. so my BBBS just ignores the second file.
As you are over GNU/Linux maybe incron could help.
https://www.geeksforgeeks.org/incron-command-in-linux-with-examples/
I was running bbbs bogus W/B and bbbs btick from a bash script. I feel
doing i
every minute is a waste of resources
Yes, it is. But I'm also processing mi inmail via batch executions.
Incron can overload your system if you receive a lot of incoming mail
and your incron event configuration is not clear enough.
I will have a look into that
Enric Lleal wrote to Sean Rima <=-
Hi Sean,
I will have a look into that
Let me know if it works for you. Incron could solve your need. ;-)
Maybe I will use it in mid term... 0:-) (at work I have a couple of servers using it without issues).
Sysop: | Fercho |
---|---|
Lugar: | La Plata, Buenos Aires |
Usuarios: | 33 |
Nodos: | 10 (0 / 10) |
Uptime: | 32:40:13 |
Llamadas: | 118 |
Archivoss: | 15,607 |
Mensajes: | 33,515 |