Subj : Basic script help To : Avon From : Oli Date : Sat Aug 07 2021 06:30 am Avon wrote (2021-08-07): A> On 06 Aug 2021 at 12:30p, Zip pondered and said... Zi>> Hello Avon! A> Thank you for this. I'm trying at moment to just script a basic .sh file A> to call from Mystic events A> #!/bin/bash A> # check for and process incoming door files if found A> cd /bbs/mystic/echomail/in A> if [ -f /bbs/mystic/echomail/in/*.GAL ] A> cd /bbs/doors/gd A> /GalacticDynasty maintenance; A> fi A> but this errors.. says something like syntax error near unexpected token A> 'fi' try this: if [ -f /bbs/mystic/echomail/in/*.GAL ]; then cd /bbs/doors/gd /GalacticDynasty maintenance fi but it only works if there is never more than one *.GAL file. Two files or more: "line 1: [: 123.GAL: binary operator expected" --- * Origin: . (21:3/102) .