Ramen,
I have been away for the past couple of days, your answer helped with some other problems I was having with syntax, however I could always get grep to work, the original problem I was having, and hopefully you can help was setting a varaiable with the output of grep. This works with UX
set X [exec /usr/bin/grep a /tmp/FAIL] this works well in Expect/UX and this works with Windows/Expect:
expect {#*} {send "/usr/bin/grep -i scsi* /var/adm/syslog/syslog.log >> /tmp/fail.txt\n\r"}
The problem is trying to set the variable X within Windows/Expect?