| Server IP : 43.141.49.119 / Your IP : 113.219.202.173 Web Server : Apache System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.1.27 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /bin/ |
Upload File : |
#!/usr/bin/sh
# lftpget - get a file with lftp
# Copyright (c) 1999-2000 Alexander V. Lukyanov <lav@yars.free.net>
# This file is covered by GNU GPL. See file COPYING for details.
if [ $# -eq 0 ]; then
echo "Usage: $0 [-c] [-d] [-v] URL [URL...]"
echo " -c continue, reget"
echo " -d debug output"
echo " -v verbose messages"
exit 1
fi
INTRO="set cmd:at-exit;set xfer:max-redirections 16;"
SCRIPT=""
verbose=false
while :
do
case "$1" in
-*v*) verbose=true
INTRO="$INTRO set cmd:verbose y;"
;;
esac
case "$1" in
-*d*) INTRO="$INTRO debug 8;";;
esac
case "$1" in
-*c*) CONT=-c;;
-*[dv]*) ;;
*) break;;
esac
shift
done
for f
do
need_pass=false
case "$f" in
"*[\"'\\]*")
# need to quote
f="`echo "$f" | sed 's/\([\\\"'\'']\)/\\\1/g'`"
;;
esac
case "$f" in
"*://*:*@*") ;;
"*://*@*") need_pass=true;;
esac
if $verbose; then
SCRIPT="$SCRIPT echo Retrieving \`\"$f\"\'...;"
fi
if $need_pass; then
SCRIPT="$SCRIPT echo \"$f\" needs password;"
fi
SCRIPT="$SCRIPT get1 $CONT \"$f\";"
if $verbose; then
SCRIPT="$SCRIPT && echo Got \`\"$f\"\'.;"
fi
done
if [ "$SCRIPT" = "" ]; then
echo "Usage: $0 URL [URL...]" >&2
exit 1
fi
exec lftp -c "$INTRO $SCRIPT"