send 422 B

12345678910111213141516
  1. #STOR $FISH_FILESIZE $FISH_FILENAME
  2. FILENAME="/${FISH_FILENAME}"
  3. echo "### 001"
  4. {
  5. bss=4096
  6. bsl=4095
  7. if [ $FISH_FILESIZE -lt $bss ]; then
  8. bss=1;
  9. bsl=0;
  10. fi
  11. while [ $FISH_FILESIZE -gt 0 ]; do
  12. cnt=`expr \\( $FISH_FILESIZE + $bsl \\) / $bss`
  13. n=`dd bs=$bss count=$cnt | tee -a "${FILENAME}" | wc -c`
  14. FISH_FILESIZE=`expr $FISH_FILESIZE - $n`
  15. done
  16. }; echo "### 200"