linux下ftp上传文件脚本
#!/bin/bash IP_ADDRESS="192.168.83.1" HOSTNAME="RD-OBS" REMOTE_PATH="/usr/obs/hustosd_zw/" USERNAME="*****" PASSWORD="*****" ftp -in <<EOF open $IP_ADDRESS user $USERNAME $PASSWORD binary cd $REMOTE_PATH put "src.tar.gz" bye EOF
linux下ftp上传文件脚本
#!/bin/bash IP_ADDRESS="192.168.83.1" HOSTNAME="RD-OBS" REMOTE_PATH="/usr/obs/hustosd_zw/" USERNAME="*****" PASSWORD="*****" ftp -in <<EOF open $IP_ADDRESS user $USERNAME $PASSWORD binary cd $REMOTE_PATH put "src.tar.gz" bye EOF