[PLUG] Bash Script Error

Rich Shepard rshepard at appl-ecosys.com
Thu Jul 8 17:30:51 UTC 2010


   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



More information about the PLUG mailing list