First, THANKS!!! for all the quick responses, I got it to work just fine.
Specifically, deep felt gratitude is extended to:
plus a "Gee, Thanks for nothing" to the two un-named individuals who took the time out of their busy day to tell me to look at the man page for "netrc" (like I hadn't thought of that and was still stumped...)
Anyway, the original problem was:
Does anyone have the time to show me how to set things up so that
I can have root's (or anyone else's) crontab extract a couple of
files from another server back onto the one initiating the transfer?
For example, how would I set it up to extract copies of the files
named "/temp/file1" and "/temp/file2" from the remote server named
"system1" using a user ID of "oracle" with a password on the both
systems of "ora-pass"? The UID is the same on both systems for the
THE SOLUTION: (at least the one I used)
LINE IN ".netrc" (which must be mode 600 in initiating users $HOME:
machine system1 login root password root-pas
THE ACTUAL SCRIPT RUN FROM CRON:
ftp system1 << !EOF
#END OF THE SCRIPT
NOTE --- a couple of responses mentioned that the blank line after the:
and before the:
was **REQUIRED**. Since it was stated more than once I saw no need to verify that. I used the blank line and it worked fine.
Have a Great Day, and, again, THANKS for all the QUICK assistance provided!!
THOUGHT FOR THE DAY:
Light travels faster than sound.
This is why some people appear bright
until you hear them speak.
U BEFORE POSTING please READ the FAQ located at
. and the list POLICY statement located at
A To submit questions/summaries to this list send your email message to:
A To unsubscribe from this list please send an email message to:
E and in the BODY type:
R unsubscribe sun-managers
. unsubscribe sun-managers firstname.lastname@example.org
L To view an archive of this list please visit:
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:16 CDT