| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Mbse and some scripts |
Hello Andrew!
Wed Feb 24 2010, Andrew Leary wrote to Vince Coen:
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
AL>Why not just create a script file that does whatever processing you
AL>need, and
AL>then calls /opt/mbse/bin/mbfido tic toss web -quiet. Make sure you
AL>flag the
AL>script as executable, and then change the Mailin command in MBSETUP
AL>(18.2) to
AL>the name of your script.
AL>This way you don't have to screw around with renamed binaries, etc.
It could be in a other index line as mailin call mbse auto tos for mbfido,
like change index 3 to gamein and call script gamein.
I have try to see how I could change mailin to like gamein but can't see
where it is done in mbsetup for task manager.
Take care,
Gert
- Get the best with linux -
--- Msged/LNX 6.2.0 (Linux/2.6.28-gentoo-r5 (x86_64))
* Origin: KofoBBS at ftp://fido1.kofobbs.net (2:236/150)SEEN-BY: 10/1 11/200 331 14/250 400 120/228 123/500 128/2 187 140/1 226/0 SEEN-BY: 236/150 249/303 250/1 306 261/20 38 100 1404 1406 1418 266/1413 SEEN-BY: 320/119 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: 236/150 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™.