Crmgo Blog

copying files to FTP

copying files to FTP

Server=192.168.xxx.xxx Username=clientftp Password=xxxxxx Directory=test LDirectory="/test" Filename="index.php" ftp -n $Server <<End-Of-Session user $Username $Password binary bell cd $Directory lcd $LDirectory put $Filename bye End-Of-Session # If you need to copy multiple files, you can use the mput *.php template

copying files to FTP

Server=192.168.xxx.xxx
Username=clientftp
Password=xxxxxx
Directory=test
LDirectory="/test"
Filename="index.php"
ftp -n $Server <<End-Of-Session
user $Username $Password
binary
bell
cd $Directory
lcd $LDirectory
put $Filename
bye
End-Of-Session

 

# If you need to copy multiple files, you can use the mput *.php template

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.