[rhn-users] Automation Task

Bob Gorman bob at rsi.com
Wed Mar 3 18:54:05 UTC 2004


At 01:33 PM 3/4/2004, 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

Create a file, call it say 'ftpscript', with contents similar to:

  open <server>
  user <login> <password>
  binary
  put <file>

Then invoke ftp like this:

  ftp -i -n <ftpscript

-- 

I build custom Linux solutions - Hire me!
mailto:bob(at)rsi.com, http://www.rsi.com/, 617.965.1700





More information about the rhn-users mailing list