Hello Todd!
19 Feb 15 00:55, you wrote to All:
TY> So I'm trying to get BINKD to execute a batch file when it receives game
TY> packets. It only seems to work when I have the file extension matched,
TY> using *.46 for example.
TY> Anytime I try and get some of the first characters matched, it doesn't
TY> work.
TY> I've tried (as an example) 046f*.* 046f.* 046f* and question marks in
TY> place
TY> of every extra character, and even went as far as trying a regex
TY> generator
TY> which suggested /^046f/i which looks like it'd work. None of these do,
TY> however, only the one that matches the file extension.
TY> So how do I get BINKD to trigger a program execution matching some of the
TY> first few characters in the filename? Any help would be seriously
TY> appreciated here. Thanks.
TY> Using BINKD 1.1.0.69 for Win32
I ran into your problem as well longer ago than I dare to mention.
The solution is quite simple.
Wen Binkd compares the filename, the name is fully qualified. Which means
that the full path to the file is given. If your mask starts with "*' that
condition is satisfied. So you should be able to use *\046* to match any
reiceived file that starts with 046.
I prefer to give the full path, so on my non windows system I would use:
flag /tmp/nodelist.new /var/spool/ftn/inbound-secure/NODELIST.?[0-9][0-9]
A wider mask would ofcourse also work, but you never know, what reaches your
system.
By the way, I do not use the example above, as the NODELIST is accompanied
by a TIC file.
Kees
--- GoldED+/LNX 1.1.5
* Origin: As for me, all I know is that, I know nothing. (2:280/5003.4)
|