get tagged posts

FTP Script | AIX to Windows Share

Often times you may want to create a script to copy, move or grab files from your AIX machine to a Windows (or other) box.  In some cases, there may a shared Windows drive created office wide and you would like to dump system information or reporting here.  If ssh is not supported on the other end, you will need to use FTP.

General FTP Commands

Here is a quick script to move files from your AIX box to your Windows share.

ftpmove(){

ftp -n <<-EOF
open fully_qualified_server_name
user username password
cd path/to/file
put file_to_copy_to_windows

get file_to_copy_to_aix

EOF
}

ftpmove

Read More