Greetings All!
I am having a hard time getting binkd to run the exec nice command after it receives new mail.. Looking at my linux installs compared to this os2 install logs the os2 log never calls for the toss command, it creates the flags and that is all. Here is an example.
06 Aug 00:20:18 [128] Remote has 0b of mail and 2372b of files for us
+ 06 Aug 00:20:18 [128] pwd protected session (MD5)
- 06 Aug 00:20:18 [128] session in CRYPT mode
- 06 Aug 00:20:18 [128] receiving ee168600.sa0 (2372 byte(s), off 0)
+ 06 Aug 00:20:18 [128] ee168600.sa0 -> \ftn\inb\ee168600.sa0
06 Aug 00:20:18 [128] got *.sa?, delayed creating C:\ftn\flags\fidoin.now
+ 06 Aug 00:20:18 [128] rcvd: ee168600.sa0 (2372, 2372.00 CPS, 1:105/81@fidonet)
+ 06 Aug 00:20:18 [128] done (from 1:105/81@fidonet, OK, S/R: 0/1 (0/2372 bytes))
06 Aug 00:20:18 [128] Creating C:\ftn\flags\fidoin.now
06 Aug 00:20:18 [128] session closed, quitting...
06 Aug 00:20:18 [65] rc(128)=0
06 Aug 00:20:18 [128] Remote has 0b of mail and 2372b of files for us
+ 06 Aug 00:20:18 [128] pwd protected session (MD5)
- 06 Aug 00:20:18 [128] session in CRYPT mode
- 06 Aug 00:20:18 [128] receiving ee168600.sa0 (2372 byte(s), off 0)
+ 06 Aug 00:20:18 [128] ee168600.sa0 -> \ftn\inb\ee168600.sa0
06 Aug 00:20:18 [128] got *.sa?, delayed creating C:\ftn\flags\fidoin.now
+ 06 Aug 00:20:18 [128] rcvd: ee168600.sa0 (2372, 2372.00 CPS, 1:105/81@fidonet)
+ 06 Aug 00:20:18 [128] done (from 1:105/81@fidonet, OK, S/R: 0/1 (0/2372 bytes))
06 Aug 00:20:18 [128] Creating C:\ftn\flags\fidoin.now
06 Aug 00:20:18 [128] session closed, quitting...
06 Aug 00:20:18 [65] rc(128)=0
* Forwarded from area 'BINKD'
06 Aug 00:20:18 [128] Remote has 0b of mail and 2372b of files for
us + 06 Aug 00:20:18 [128] pwd protected session (MD5) - 06 Aug
00:20:18 [128] session in CRYPT mode - 06 Aug 00:20:18 [128]
receiving ee168600.sa0 (2372 byte(s), off 0) + 06 Aug 00:20:18 [128]
ee168600.sa0 -> \ftn\inb\ee168600.sa0 06 Aug 00:20:18 [128] got
*.sa?, delayed creating C:\ftn\flags\fidoin.now + 06 Aug 00:20:18
[128] rcvd: ee168600.sa0 (2372, 2372.00 CPS,
1:105/81@fidonet)
+ 06 Aug 00:20:18 [128] done (from 1:105/81@fidonet, OK, S/R: 0/1
(0/2372 bytes)) 06 Aug 00:20:18 [128] Creating
C:\ftn\flags\fidoin.now 06 Aug 00:20:18 [128] session closed,
quitting... 06 Aug 00:20:18 [65] rc(128)=0
Do you have an exec for your tosser as well? I would check that exec
line for errors that might cause it to fail.
I was using flag files at one time and my script/batch would check for that flag file and if found delete it and run the tosser so that might work for you also.
flag C:\\ftn\\flags\\netmail.out *.pkt *.PKT
flag C:\\ftn\\flags\\fidoin.now *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SAT?
And I have tried all variations of the following I could think of
#exec "nice -n 19 c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[STFWMstfwm][ouaherOUAHER][0-9a-Za-z] *.[pP][kK][tT]
exec "c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]
here is my "toss.cmd"
@echo off
cd \ftn\inb
set unixroot=x:
hpt toss scan pack
exec "c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]
# Create a flag file after receiving a file
#
flag C:\\ftn\\flags\\netmail.out *.pkt *.PKT
flag C:\\ftn\\flags\\fidoin.now *.su? *.mo? *.tu? *.we? *.th? *.fr?
*.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SAT? #flag C:\\ftn\\flags\\toss.flg flag C:\\ftn\\flags\\filebone.in *.tic *.TIC
exec "c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]
here is my "toss.cmd"
@echo off
cd \ftn\inb
set unixroot=x:
hpt toss scan pack
* Forwarded from area 'BINKD'I guess it was a typo...
Rick wrote (2022-08-06):
flag C:\\ftn\\flags\\netmail.out *.pkt *.PKT
flag C:\\ftn\\flags\\fidoin.now *.su? *.mo? *.tu? *.we? *.th?
*.fr? *.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SAT?
Why *.SAT?
^
exec "c:\\ftn\\toss.cmd" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa?I am giving this a try, will report back
*.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SA?
or just omit the path, in case there is a problem in pattern matching
the "\\":
exec "c:\\ftn\\toss.cmd" *.[mwtfs][oehrau][0-9a-zA-Z]
@echo off
cd \ftn\inb
set unixroot=x:
hpt toss scan pack
Here is the exact line I am using in binkd.cfg
exec "4os2.exe /c "c:\\ftn\\toss.cmd" *F *A0 *H" *.su? *.mo? *.tu?
"c:ftntoss.cmd" 08:02
Hi Rick.
07 Aug 22 09:33:16, you wrote to All:
"c:ftntoss.cmd" 08:02
Also set UNIXROOT=X: _before_ running binkd/klibc.
ok so I set unixroot just before running binkd startup.. will see what happens I guess next mail run, but so far its not executing any of the exec lines ive tried... hpt working fine at the moment so that is good
I guess..
* Forwarded from area 'binkd'
Hello Rick!
Even though I'm running linux this is what my exec line looks like,
and it get's executed every time:
The hpt-copy.sh makes a backup of the mail, in year/month/day
directories, and then runs the hpt process's to do the mail.
Even though I'm running linux this is what my exec line looks
like, and it get's executed every time:
Yeah my linux setups are just fine been doing those for years, Os2 is
a little finicky with things.
The hpt-copy.sh makes a backup of the mail, in year/month/day
directories, and then runs the hpt process's to do the mail.
Thats really cool...
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 93 |
Nodes: | 16 (0 / 16) |
Uptime: | 05:14:43 |
Calls: | 5,157 |
Calls today: | 2 |
Files: | 8,491 |
Messages: | 352,742 |