On Sun, 2005-02-06 at 16:11 +0100, Leiaz wrote: > Mal Herring wrote: > > >Hi list, > >I have run into a little difficulty... > > > >I am writing a script that : > > > >Checks page 1 for text, then checks page2 for text then lauches a > >command - I have tried this : > >
if lynx -dump page1 | grep -q -e "search string"; then if lynx -dump page2 | grep -q -e "search string"; then command(s); fi; fi > > > >i have also tried using elif commands but always seem to get syntax > >errors: unexpected end of file > > > >can someone help me to understand where i am going wrong ? > > > >thanks in advance... > > > >-- > >gentoo-user@gentoo.org mailing list > > > > > > > > > > > And I think you should add another "then" too : > > if lynx -dump page1 | grep -q -e "search string" > then > if lynx -dump page2 | grep -q -e "search string" > then > command > fi > fi > > > Laetitia > > > -- > gentoo-user@gentoo.org mailing list > -- gentoo-user@gentoo.org mailing list