Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /usr/libexec/mc/fish/ |
#STOR $FISH_FILESIZE $FISH_FILENAME FILENAME="/${FISH_FILENAME}" echo "### 001" { > "${FILENAME}" bss=4096 bsl=4095 if [ $FISH_FILESIZE -lt $bss ]; then bss=1; bsl=0; fi while [ $FISH_FILESIZE -gt 0 ]; do cnt=`expr \\( $FISH_FILESIZE + $bsl \\) / $bss` n=`dd bs=$bss count=$cnt | tee -a "${FILENAME}" | wc -c` FISH_FILESIZE=`expr $FISH_FILESIZE - $n` done }; echo "### 200"