ftp script?

Harold Hallikainen harold at hallikainen.com
Tue Dec 14 18:45:49 UTC 2004


IT WORKS!!!

Thanks!

Harold


> Harold Hallikainen wrote:
>> I'm trying to have ftp send a file to another machine in a shell script
>> called by cron. After Googling around, reading various man pages, etc.,
>> it
>> looks like I've gotten the script to log in properly by setting up stuff
>> in .netrc , but I'm still having trouble sending the cd and put commands
>> into ftp from the script. Can anyone give me some clues? This is running
>> on an RH8 machine.
>
> Have a look at the "ncftpput" and "ncftpget" commands.  They are
> FTP client programs specifically written to be used in batch or shell
> scripts.  "man ncftpput" and "man ncftpget" for details.
> ----------------------------------------------------------------------
> - Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
> - VitalStream, Inc.                       http://www.vitalstream.com -
> -                                                                    -
> -    First Law of Work:                                              -
> -    If you can't get it done in the first 24 hours, work nights.    -
> ----------------------------------------------------------------------
>
> _______________________________________________
> 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
>


-- 
FCC Rules Updated Daily at http://www.hallikainen.com




More information about the Redhat-install-list mailing list