home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 602 
 Alan Ianson to All 
 My bash script 
 03 Aug 19 12:13:42 
 
MSGID: 1:153/757.0 7cba21f5
TZUTC: -0700
CHARSET: LATIN-1
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: 1/123 15/2 57/0 153/250 154/10 203/0 220/70 221/0 226/17
SEEN-BY: 227/114 229/354 426 1014 240/5832 249/206 317 400 250/3 267/800
SEEN-BY: 280/464 5003 310/31 317/3 322/757 342/200 396/45 712/848
SEEN-BY: 770/0 1 100 340 772/0 1 500 2452/250
PATH: 153/757 250 770/1 280/464 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca