automated file transfer?

Rahul Jain rbj2 at oak.njit.edu
Sat Sep 17 18:15:16 UTC 2005


Hi,

You can put the following lines in your script after you create the tar
file to automatically ftp your file. FYI, COMMANDS is not a keyword.

ftp -n -i remote_machine << COMMANDS
        user username password
        bin
        put file 1
	put file 2
	...
COMMANDS

Hope this helps,
Rahul.

On Sat, 17 Sep 2005, mike wrote:

> hi all,
>
> i'm a unix newbie and i'm trying to do the following...
>
> i'm TARing up a directory, then i need to transfer this file to
> another machine.  so far i have a script to tar up the directory set
> up using crontab to run every day at a certain time.  however, i need
> to transfer this file to another machine and i was wondering if i can
> do it in ftp all in one line?  in other words, how would i automate
> logging into another machine via ftp, and transferring a file to that
> remote machine?
>
> thx
> -m
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
>




More information about the Redhat-install-list mailing list