1

can't execute the commands from script: no such file or directory

view story
linux-howto

http://stackoverflow.com – I'm working on a script that takes commands from mysql and execute them one by one. my problem is, i can't execute the commands from script: ./bash.sh: line 26: /myscript.sh -c "": no such file or directory line 26 is the command i wish to execute ("$com"). if i try to run the command manually, by echoing the content of "$com" and than run it from terminal, it's working. What am i doing wrong? if [ ! "${#array[*]}" -eq "0" ]; then for (( i=0 ; i<cnt ; i++ )); do id=$(echo "${array[$i]}" | sed 's@\t@^@g' | cut -f'1' -d'^') com=$(echo "${array[$i]}" | sed 's@\t@^@g' | cut (HowTos)