Subj : Semaphores. To : j b l From : Bill McGarrity Date : Thu Mar 09 2017 10:59 pm -=> j b l wrote to mark lewis on 03-09-17 20:57 <=- jbl> Re: Semaphores. jbl> By: mark lewis to j b l on Thu Mar 09 2017 10:12 am ML> x:\foo\semaphore\mail-in.sem... you need another process to watch for that ML> semaphore... when it appears, start your mail tossing routine... remember jbl> And how would I start this other process? The other process is your tosser. What tosser are you using to import/export the mail? ML> you need this on... if you are working on the linux side of the fence, you ML> might be able to get fancy and just monitor the datetime of the semaphore jbl> Yes. This is on the linux side. Are you using sbbs as your bbs and sbbsecho as your tosser? If so, then point the semaphore file named 'FIDOIN.NOW' to your ../sbbs/data folder. sbbsecho will see that semaphore and do it's thing for you. You can create a bash script to run once it sees that semaphore and configure it under ./scfg. > External Programs > Timed Events > FIDOIN. You can use the following in the binkd.cfg file.. flag ../sbbs/data/fidoin.now *.pkt *.PKT ..[mMwWtTfFsS][oOeEhHrRaAuU][0-9a-zA-Z] If you're running sbbsecho as standalone as I am, you can use the binkd's EXEC. Mine entry is as follows: exec "/home/pi/sbbs/exec/./inmail.sh" *.pkt *.[mwtfs][oehrau][0-9a-zA-Z] If binkd sees a pkt or a bundle, it will call inmail.sh. This is what mine looks like. *****Start inmail.sh #!/bin/bash -e echo "*****Setting CTRL variable" SBBSCTRL=/home/pi/sbbs/ctrl/ && export SBBSCTRL cd /home/pi/sbbs/exec echo ?***** Process inbound mail? #I create a log everytime there's inbound mail so if there's a problem I can review it. ../sbbsecho -lesr > /home/pi/sbbs/events/inerror.log if [ -f /home/pi/sbbs/sportnet/secure/*.bad ]; then mv -f /home/pi/sbbs/sportnet/secure/*.bad /home/pi/sbbs/sportnet/bad/ fi *****End inmail.sh BTW, that bash script has been sliced, diced, reviewed and given the ok by many who know better than I. Hope this helps -- Bill Telnet: tequilamockingbirdonline.net Web: bbs.tequilamockingbirdonline.net:81 FTP: ftp.tequilamockingbirdonline.net:2121 IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697 Radio: radio.tequilamockingbirdonline.net:8010/live .... Look Twice... Save a Life!!! Motorcycles are Everywhere!!! === MultiMail/Win32 v0.50 --- SBBSecho 3.00-Win32 * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404) .