Ftp Shell

Exemple de scripts pour utiliser FTP dans un shell


 * Sous shell help obtenu avec 

shell> ftp -n << @EOFF
help ls
help ...

 * Help

ftp> help
Commands may be abbreviated.  Commands are:

!               debug           mdir            qc              send
$               dir             mget            sendport        site
account         disconnect      mkdir           put             size
append          exit            mls             pwd             status
ascii           form            mode            quit            struct
bell            get             modtime         quote           system
binary          glob            mput            recv            sunique
bye             hash            newer           reget           tenex
case            help            nmap            rstatus         tick
cd              idle            nlist           rhelp           trace
cdup            image           ntrans          rename          type
chmod           lcd             open            reset           user
close           ls              prompt          restart         umask
cr              macdef          passive         rmdir           verbose
delete          mdelete         proxy           runique         ?

ftp> bye

 * Help par commande

---------       -----------------------------------------------------
Commande                             Libelle
---------       -----------------------------------------------------
!         	escape to the shell
debug     	toggle/set debugging mode
mdir      	list contents of multiple remote directories
qc        	print ? in place of control characters on stdout
send      	send one file
$         	execute macro
dir       	list contents of remote directory
mget      	get multiple files
sendport  	toggle use of PORT cmd for each data connection
site      	send site specific command to remote server
		Try "rhelp site" or "site help" for more information
account   	send account command to remote server
disconnect	terminate ftp session
mkdir     	make directory on the remote machine
put       	send one file
size      	show size of remote file
append    	append to a file
exit      	terminate ftp session and exit
mls       	list contents of multiple remote directories
pwd       	print working directory on remote machine
status    	show current status
ascii     	set ascii transfer type
form      	set file transfer format
mode      	set file transfer mode
quit      	terminate ftp session and exit
struct    	set file transfer structure
bell      	beep when command completed
get       	receive file
modtime   	show last modification time of remote file
quote     	send arbitrary ftp command
system    	show remote system type
binary    	set binary transfer type
glob      	toggle metacharacter expansion of local file names
mput      	send multiple files
recv      	receive file
sunique   	toggle store unique on remote machine
bye       	terminate ftp session and exit
hash      	toggle printing `#' for each buffer transferred
newer     	get file if remote file is newer than local file 
reget     	get file restarting at end of local file
tenex     	set tenex file transfer type
case      	toggle mget upper/lower case id mapping
help      	print local help information
nmap      	set templates for default file name mapping
rstatus   	show status of remote machine
tick      	toggle printing byte counter during transfers
cd        	change remote working directory
idle      	get (set) idle timer on remote side
nlist     	nlist contents of remote directory
rhelp     	get help from remote server
trace     	toggle packet tracing
cdup      	change remote working directory to parent directory
image     	set binary transfer type
ntrans    	set translation table for default file name mapping
rename    	rename file
type      	set file transfer type
chmod     	change file permissions of remote file
lcd       	change local working directory
open      	connect to remote ftp
reset     	clear queued command replies
user      	send new user information
close     	terminate ftp session
ls        	list contents of remote directory
prompt    	force interactive prompting on multiple commands
restart   	restart file transfer at bytecount
umask     	get (set) umask on remote side
cr        	toggle carriage return stripping on ascii gets
macdef    	define a macro
passive   	enter passive transfer mode
rmdir     	remove directory on the remote machine
verbose   	toggle verbose mode
delete    	delete remote file
mdelete   	delete multiple files
proxy     	issue command on alternate connection
runique   	toggle store unique for local files
?         	print local help information

Previous page: Tester valeur numerique
Page suivante : Historique