Tomcat 7 BASH CP copies filename but not the file content? -


i have peculiar issue:

the following bash script worked fine under tomcat 5. when tomcat 5 upgraded tomcat 7, script fails. (it may coincident, don't know) script started response.sendredirect() statement in servlet.

the bash script executes cp command twice (count = 0, 1). first time (count = 0) cp command executed expected. second time copies filename not content of file.

count=0; while [[ $count -lt ${#param[*]} ]];   echo "cp $dirfrom${param[$count]} $dirto${param[$count]}<br>"   case ${param[$count]} in     *.jpg) cp $dirfrom${param[$count]} $dirto${param[$count]} ;;     *.gif) cp $dirfrom${param[$count]} $dirto${param[$count]} ;;   esac   let count++ done 

as see, have test output line @ line 3. if executes echoed cp in line 3 manually, cp executes expected.

any clues?


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -