我有一个bash脚本,我试图在hostgator帐户上运行。
bubblesort_optimized(A)
assume we are not done sorting
while we are not done sorting
assume we're done sorting
traverse the list element by element from i = 1 to n - 1.
if A[i-1] > A[i], swap
if a swap occurs, we are not done sorting
上面的脚本从客户端(hostgator)向我提供了以下错误代码:
cd $HOMEDIR
dir="$(date +'%a')"
# Upload backups (5 tries)
i=0
while [ $i -le 5 ]; do
# We're running this more than once so it's advised to use -E to delete the
# original file after successful transfer.
lftp -d -e "set ftp:ssl-allow no; mrm backup-*.tar.gz; mput -c -E -O $dir backup-*.tar.gz;quit" -u $FTP_USER,$FTP_PASS -p $FTP_PORT $FTP_ADDR
sleep 5
((i++))
done
# Delete backup before generating new b/c hostgator allows only one
rm backup-*.tar.gz
# Generate new full backup in Cpanel
PARAMS="dest=homedir&email=$EMAIL&submit=Generate%20Backup"
curl -u $CPANEL_USER:$CPANEL_PASS --data $PARAMS $CPANEL_HOST/frontend/x3/backup/dofullbackup.html
服务器系统是在Windows 10上运行的firezilla。
---> FEAT
<--- 211-Features:
<--- MDTM
<--- REST STREAM
<--- SIZE
<--- MLST type*;size*;modify*;
<--- MLSD
<--- AUTH SSL
<--- AUTH TLS
<--- PROT
<--- PBSZ
<--- UTF8
<--- CLNT
<--- MFMT
<--- EPSV
<--- EPRT
<--- 211 End
---> CLNT lftp/4.0.9
<--- 200 Don't care
---> OPTS UTF8 ON
<--- 202 UTF8 mode is always enabled. No need to send this command.
---> USER emre**
<--- 331 Password required for emre**
---> PASS *******
<--- 230 Logged on
---> PWD
<--- 257 "/" is current directory.
---> TYPE I
<--- 200 Type set to I
---> SIZE Fri/backup-6.17.2016_08-40-54_emre.tar.gz
<--- 550 File not found
---> PASV
<--- 227 Entering Passive Mode (**,***,**,**,199,56)
---- Connecting data socket to (**.***.**.**) port 51000
**** Socket error (Connection refused) - reconnecting
---- Closing data socket
---- Closing control socket
我不知道发生了什么事?任何人都可以发光吗?我现在一直在挖掘几个小时,无法弄明白。