I keep receiving the following error message when trying to use this script in Cygwin. When use this same script within a Linux box the script works fine? Can anyone assist with this issue?
Code:
#!/bin/bash
cat file2.txt |while read line; do
echo ${line}
smbclient //${line}/c$ -W domain -U user%"password" << "EOF"
cd "/Documents and Settings"
ls
done
EOF