[PLUG] Bash Script Error
drew wymore
drew.wymore at gmail.com
Thu Jul 8 17:41:32 UTC 2010
On Thu, Jul 8, 2010 at 10:30 AM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> When I run this script:
>
> set $all="cat list"
> for x in $all; `cat msg2 | mailx -s "Test Message"' $x
>
> I see this error:
>
> -bash: syntax error near unexpected token `cat msg2 | mailx -s "Test
> Message"'
>
> What have I done incorrectly? Is it the semi-colon?
>
> Typing on two lines (beaking after the semi-colon) makes no difference.
>
> Rich
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
you need to add "do" after the semi colon.
More information about the PLUG
mailing list