[rhn-users] Automation Task

Raymundo M. Vega rmvega at san.rr.com
Thu Mar 4 06:46:33 UTC 2004


Put the following script in a file, replace the username,
pasword and ftp commands, make it executable and run it.
------------------

#!/bin/bash

ftp -nu domo <<_EOF__
user username password
ftp_command1
ftp_command2
ftp_command3
ftp_command4
quit
_EOF__


Jorge wrote:

>Hello. I need a process that makes a FTP connection to another Linux machine
>and copy some files . This process must be non-interactive because I'll use
>cron to run it every night.
>I don't know how can I do it. I'm thinking about a shell script but I don't
>know if I can do it.
>How can I do it?
>Thanks
>
>
>
>
>_______________________________________________
>rhn-users mailing list
>rhn-users at redhat.com
>https://www.redhat.com/mailman/listinfo/rhn-users
>
>  
>





More information about the rhn-users mailing list