|
|
||||||||||||||||||||||||||||
|
light speed a command line top 100 search
free external tools,
java sources
cpp sources
articles
|
- download the free swiss file knife base from sourceforge. - unpack the tool using winzip or unzip. - open the Windows Command Line or a Linux shell.
sfk ftp host[:port] [options] [command [parms]
The SFK Simple Anonymous FTP Client.
commands
put x send a single file with name x
get x receive a single file with name x
mput x send multiple files of the current directory
having x in their filename
mget x receive multiple files from the ftp server
having x in their filename
dir list the remote directory
cd x change into remote directory x
!mycmd execute local command mycmd
run cmd run remote command (only with sfk ftp server)
bye exit
options
-verbose list the transmitted ftp commands.
helpful to get more infos in case of errors.
-quiet produce less verbose output.
-noprog no progress indicator during transfers.
-update transmit only changed files. this option is experimental
and may or may not work, depending on the server software,
server settings (UTC vs. local time) and time zone.
-new the same as -update, only shorter to type.
-pw=x or -pw x sends an authentication password x.
you may also set an environment variable like:
SET SFK_FTP_PW=mypassword
-noclone do not try to replicate time stamps on a file
transmission from an sfk ftp server.
aliases
sfk sft ... = the same as sfk ftp, but using port 2121.
automatic IP expansion
if you are in the same subnet as the target host,
you may supply only the IP number's last part, e.g.:
sfk ftp 23 ... == sfk ftp 192.168.1.23 ...
this feature may or may not work, depending on your
operating system and number of network interfaces.
examples
sfk ftp farpc put test.zip
send test.zip to farpc
sfk ftp 192.168.1.99:30199 get test.zip
receive test.zip from 192.168.1.99 port 30199
sfk ftp farpc mput .cpp
send all .cpp files of the local dir to farpc.
subfolder contents are NOT included.
sfk ftp farpc mget *
receive all files from farpc's directory,
overwriting everything in the local directory.
sfk ftp hostname
enter interactive mode, in which you can type
the above commands directly. for example,
!dir runs the command "dir" locally.
IF connected with an sfk ftp server:
sfk ftp farpc get the\sub\dir\doc.txt
if sfk ftpserv is running with the "-deep" option,
direct access to files with full paths is allowed.
all required directories are created automatically.
the deep mode cannot be used with mget, mput and dir.
sfk sel mydir .txt +ftp farpc mput -update
send all .txt files within mydir that changed since
the last transmission to farpc. requires option -deep
at server side to allow paths.
sfk sel mydir .txt +sft farpc mput -update
same as above, but using port 2121 against an sfk
server started like "sfk sftserv -rw -deep".
recommended to avoid connection problems
that may occur on ftp default port 21.
sfk filter filelist.txt +ftp farpc mget mydir
create a list with filenames, download the files listed
therein from server farpc into a folder "mydir".
may require option -deep at server side to allow paths.
sfk ftp farpc -pw mypw run "sh myscript.sh >tmp1.txt 2>&1"
execute a command on the remote server, redirecting all
output into a file tmp1.txt. requires an sfk ftp server
with option -run, AND -pw authentication on both sides.
problems and solutions:
- Windows Vista, Windows 7: if the firewall stops sfk to sfk
file transfer on port 21 with ECONNRESET, use a different
port, e.g. -port=5000. read more in the sfk ftpserv help.
see also:
sfk ftpserv -help
NOTE: existing files are overwritten without asking back.
Make sure that ftp server and client are running
in the correct directories, especially before mput/mget.
sfk is a free open-source tool, running instantly without installation efforts. no DLL's, no registry changes - just get sfk.exe from the zip package and use it (windows and linux binaries are included). read more about all sfk functions here.
|
|