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.

Your suggestions and comments will be greatly appreciated.

 

Thanks,

Peram

 Trevor <[EMAIL PROTECTED]>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
originat! e 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!

Reply via email to