TIP: Click on subject to list as thread! ANSI
echo: mbse
to: Vince Coen
from: Andrew Leary
date: 2010-02-24 22:41:06
subject: Mbse and some scripts

Hello Vince.

24 Feb 10 15:20, you wrote to Gert Koefoed Andersen:

 VC> With files it's very easy but for mail that is more tricky ..
 VC> but not impossible:
 VC> So, what is run when mail arrives?
 VC> Yep, it is mbfido eg, 'mbfido to' so:
 VC> 1.  Rename mbfido (in /opt/mbse/bin) to say exmbfido
 VC> 2.  Create a script say mbfido with 'x' set on, and store it in
 VC> /opt/mbse/bin
 VC>     This should do whatever you need but also calls mbfido with the
 VC> appropriate
 VC>     options. How you ask? You will need to evaluate why mbfido is
 VC> called within
 VC>     the script and the easiest way is by capturing the command string
 VC> to it and
 VC>     saving all arguments (other than the first (which is mbfido) into
 VC> a
 VC>     variable say $FIDO-ARGS having stripped out arg0.

 VC>     Then when ready to run mbfido call /opt/mbse/bin/exmbfido
 VC> $FIDO-ARGS then
 VC>     exit

Why not just create a script file that does whatever processing you need, and 
then calls /opt/mbse/bin/mbfido tic toss web -quiet.  Make sure you flag the 
script as executable, and then change the Mailin command in MBSETUP (18.2) to 
the name of your script.

This way you don't have to screw around with renamed binaries, etc.

Andrew

--- GoldED+/LNX 1.1.5
* Origin: Phoenix BBS * phxbbs.dyndns.org (1:320/219)
SEEN-BY: 10/1 11/200 331 14/250 120/228 123/500 128/2 187 140/1 226/0 236/150
SEEN-BY: 249/303 250/1 306 261/20 38 100 1404 1406 1418 266/1413 320/119
SEEN-BY: 393/68 396/45 633/104 260 267 285 712/848 800/432 801/161 189
SEEN-BY: 2222/700 2320/100 200 5030/1256
@PATH: 320/219 119 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.