[rhn-users] Automation Task
Sterling, James A
james.a.sterling at boeing.com
Wed Mar 3 19:05:56 UTC 2004
Another way would be to use rcp in side a script also ..
rcp -pr the_target_file
other_system:/where_to_go/the_target_file
with rcp there is no checking of passwords.. And the account on
the first machine MUST be on the target machine..
And you may need /etc/hosts.equiv to have both systems names so both
machines know about one another
Hope this helps
Jim Sterling
-----Original Message-----
From: Bob Gorman [mailto:bob at rsi.com]
Sent: Wednesday, March 03, 2004 1:54 PM
To: rhn-users at redhat.com
Subject: Re: [rhn-users] Automation Task
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
_______________________________________________
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