On Thu, Sep 19, 2002 at 02:45:09PM -0700, S Peram wrote:
> 
> Hi, 
> Thanks a lot for the responses. 
> I just had a question regarding the ftp.
> Is there any way I can pass all  the parameters such as username, password and the 
>commands that are to be executed in a shell script.

Hello 

Maybe you have you have had your question answered already but
just in case I thought I would send the url for a tutorial that teaches
how to write scripts that automate the use of ftp. 

Find it at:
 
   http://www.linuxgazette.com/issue34/izquierdo.html

Hopes it helps.

t.irvine

> Your suggestions and comments will be greatly appreciated.
>  
> Thanks,
> Peram
>  Trevor wrote:You have many different options... tell us what is best for you and we 
>can
> try help you out.
> 
> 1. Use smbclient (Samba) to establish a network connection via a share on
> your windows machine. Set up a cron job to transfer files to your box at a
> specific time. Use a simple 'cp' command to copy all files to your windows
> machine.
> 
> 
> 2. Use rsync. You can download rsync for Windows and obviously for RedHat.
> This can provide a secure way to transmit files (even across the Internet).
> The added advantage of rsync is that it will only copy files that have
> changed.
> 
> For Windows:
> 
> 
> For RedHat:
> 
> 
> Help on Rsync:
> http://ultra.litpixel.com:82/rsync/rsync_content.html
> 
> 
> 3. Use FTP. Set up an FTP server on the Windows box. You mentioned that
> you didn't want to do this... I agree with you. FTP should not be your
> first choice.
> 
> 
> 4. Have you thought about e-mailing the log files to your workstation? Make
> a cronjob that sends you the log files every night:
> 
> Eg. "cat /var/log/messages | mail [EMAIL PROTECTED]" should do the trick
> (if you have an SMTP service on your linux box).
> 
> 
> 
> Good luck!
> 
> Trevor
> http://www.gnuguy.com
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of S Peram
> Sent: Thursday, September 19, 2002 1:28 PM
> To: [EMAIL PROTECTED]
> Subject: script for ftp transfer
> 
> 
> Hi all,
> I need to transfer some log files on a daily basis from my machine to a
> windows machine.
> I'd really appreciate if any of you can give me some ideas, my situation is
> that I can't put ftp server on that machine and so the file transfers should
> originate from the Linux machine.
> I was thinking of some kind of a cron job but I've run out of ideas.
> I'd appreciate if any of you gurus can help me with some scripts or links.
> 
> Thanks,
> 
> Peram
> 
> 
> 
> 
> 
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> ---------------------------------
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
-- 

 Whoever thinks a faultless piece to see,
  Thinks what ne'er was, nor is, nor ne'er shall be.

     Alexander Pope, An Essay On Criticism.




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to