TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: All
from: Alan Ianson
date: 2019-08-03 12:13:42
subject: My bash script

Hello All,

I am using this in a bash script to toss incoming files here and am having a
problem with it that I hope someone can shed some light on for me.

---- begin import mailin.sh ---

# process tics
if [ -f fido/inbound/*.tic ]; then
./bbbs btick > /dev/null 2>&1
./bbbs bfilsort > /dev/null 2>&1
./bbbs bfileidx > /dev/null 2>&1
fi

That is a snippit from my script that tosses inbound files. It works fine if
there in just one inbound *.tic but if there are more than one tic to be
processed it fails and I see this..

scripts/mailin.sh: 14: [: fido/inbound/12345678.tic: unexpected operator

I'm not sure what that means or how to overcome it. Any suggestions?

One last question.. I have a second section like the aboveeeee that looks for
*.TIC instead of *.tic. Is there a way to edit the above line to look for both
*.tic and *.TIC?

Thanks for any pointers.. :)

--- BBBS/Li6 v4.10 Toy-4
* Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
SEEN-BY: 57/0 153/250 154/10 203/0 220/70 221/0 1 6 360 229/426 240/5832 250/3
SEEN-BY: 267/800 280/464 5003 310/31 320/219 396/45 633/0 267 280 410 412 509
SEEN-BY: 640/1321 1384 712/848 770/0 1 100 340 772/0 1 500 2452/250
@PATH: 153/757 250 770/1 280/464 221/1 640/1384 633/280 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™.