FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 10-20-2010, 05:37 PM
Abhishek Aggarwal
 
Default Windows to Linux File Transfer (Automatically)

Hey Guys,
I am facing a problem in transfering files from windows to linux. I have to Transfer some files from a windows xp machine to linux machine automatically as the files have to be transfered on every interval of 30 min, but i am transferring files manually and sometimes i am not able transfer files on time and this creates a lot of issues in my servers. so can anyone help me out or provide me some software which helps me transferring the files on every interval of period required. Thanks in Advance*

Thanks And Regards

Abhishek Agarwal



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-20-2010, 05:59 PM
 
Default Windows to Linux File Transfer (Automatically)

Abhishek Aggarwal wrote:
> Hey Guys,
> I am facing a problem in transfering files from windows to linux. I have
> to Transfer some files from a windows xp machine to linux machine
> automatically as the files have to be transfered on every interval of 30
> min, but i am transferring files manually and sometimes i am not able
> transfer files on time and this creates a lot of issues in my servers. so
> can anyone help me out or provide me some software which helps me
> transferring the files on every interval of period required. Thanks in
> Advance*

rsync. It runs on everything. You can have a cron job on Linux to talk to
the WinDoze box....

mark

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-20-2010, 06:05 PM
Serge Dubrouski
 
Default Windows to Linux File Transfer (Automatically)

cron

On Wed, Oct 20, 2010 at 11:37 AM, Abhishek Aggarwal
<abhishekggrwl@yahoo.co.in> wrote:
> Hey Guys,
> I am facing a problem in transfering files from windows to linux. I have to Transfer some files from a windows xp machine to linux machine automatically as the files have to be transfered on every interval of 30 min, but i am transferring files manually and sometimes i am not able transfer files on time and this creates a lot of issues in my servers. so can anyone help me out or provide me some software which helps me transferring the files on every interval of period required. Thanks in Advance
>
> Thanks And Regards
>
> Abhishek Agarwal
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



--
Serge Dubrouski.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-20-2010, 06:07 PM
 
Default Windows to Linux File Transfer (Automatically)

winscp and batch scripts + sshkeys

Scott Rineer
Network Server Specialist (Linux)
American Water ITS
800 West Hershey Park Drive
Hershey, PA 17033
Office (717) 520-4578
Cell: (717)-862-8610



From: Abhishek Aggarwal <abhishekggrwl@yahoo.co.in>

To: redhat-list@redhat.com

Date: 10/20/2010 01:59 PM

Subject: Windows to Linux File Transfer (Automatically)

Sent by: redhat-list-bounces@redhat.com






Hey Guys,
I am facing a problem in transfering files from windows to linux. I have to
Transfer some files from a windows xp machine to linux machine
automatically as the files have to be transfered on every interval of 30
min, but i am transferring files manually and sometimes i am not able
transfer files on time and this creates a lot of issues in my servers. so
can anyone help me out or provide me some software which helps me
transferring the files on every interval of period required. Thanks in
Advance

Thanks And Regards

Abhishek Agarwal



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-20-2010, 06:17 PM
Aaron Bliss
 
Default Windows to Linux File Transfer (Automatically)

You may find using winscp or pscp (XP machine client) helpful. We use
both to transfer data frequently, as the clients support private/public
keys and there own scripting language.


Aaron

On 10/20/2010 2:05 PM, Serge Dubrouski wrote:

cron

On Wed, Oct 20, 2010 at 11:37 AM, Abhishek Aggarwal
<abhishekggrwl@yahoo.co.in> wrote:

Hey Guys,
I am facing a problem in transfering files from windows to linux. I have to Transfer some files from a windows xp machine to linux machine automatically as the files have to be transfered on every interval of 30 min, but i am transferring files manually and sometimes i am not able transfer files on time and this creates a lot of issues in my servers. so can anyone help me out or provide me some software which helps me transferring the files on every interval of period required. Thanks in Advance

Thanks And Regards

Abhishek Agarwal



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list







--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-21-2010, 12:59 PM
sunhux G
 
Default Windows to Linux File Transfer (Automatically)

pscp or psftp do not support "ASCII" mode transfer which is available in ftp
- this was a shortcoming I faced when transferring files between Windows &
Unix boxes. pscp/psftp doesn't support "APPEND" mode too while ftp does.

Having said that ftp does not transfer data as securely as 'scp' or 'sftp'

winscp supports "ASCII" though & I think if you're transferring a whole
subdirectory of files, winscp will detect which file to be transferred in
ASCII & which in Binary.

U

On Thu, Oct 21, 2010 at 2:17 AM, Aaron Bliss <abliss@brockport.edu> wrote:

> You may find using winscp or pscp (XP machine client) helpful. We use both
> to transfer data frequently, as the clients support private/public keys and
> there own scripting language.
>
> Aaron
>
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-22-2010, 12:23 AM
David Bear
 
Default Windows to Linux File Transfer (Automatically)

I don't think 'ascii' mode is important any longer. But if it is and you
want 'append' you should consider using rsync over ssh. rsync treats all
files as binary -- which has been safe for all use cases I have had when
transferring files from windows to linux and back. running rsync over ssh is
secure as well -- and you can use ssh public keys to make the connection
passwordless and secure. rsync also will only transfer the 'diffs' -- so if
file a, b, and c have not changed, but d has changed (and only the 15th thru
the 60th byte) then only the changes to d will be sent. rsync does not
handle ntfs alternate data streams, and sometimes seems to barf on unicode
file names using asian charactersets. so you should test well.

On Thu, Oct 21, 2010 at 5:59 AM, sunhux G <sunhux@gmail.com> wrote:

> pscp or psftp do not support "ASCII" mode transfer which is available in
> ftp
> - this was a shortcoming I faced when transferring files between Windows &
> Unix boxes. pscp/psftp doesn't support "APPEND" mode too while ftp does.
>
> Having said that ftp does not transfer data as securely as 'scp' or 'sftp'
>
> winscp supports "ASCII" though & I think if you're transferring a whole
> subdirectory of files, winscp will detect which file to be transferred in
> ASCII & which in Binary.
>
> U
>
> On Thu, Oct 21, 2010 at 2:17 AM, Aaron Bliss <abliss@brockport.edu> wrote:
>
> > You may find using winscp or pscp (XP machine client) helpful. We use
> both
> > to transfer data frequently, as the clients support private/public keys
> and
> > there own scripting language.
> >
> > Aaron
> >
> >
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



--
David Bear
College of Public Programs at ASU
602-494-0424
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-22-2010, 04:21 PM
sunhux G
 
Default Windows to Linux File Transfer (Automatically)

Hi David

So, with the private+public key pair, we'll be doing something like
ssh user@remotehost 'cat remotefile' | dos2unix >> localfile
if I'm initiating ssh from my Linux box to a remote Windows box?
Would the above command be equivalent of ftp's get with 'ascii' +
'append' feature ? Would this command be equivalent to ftp get with
ascii & append mode?

What would be the equivalent command for ftp put with ascii & append
mode then? I can't figure this out. With ftp, this is plain sailing.

Would you be able to provide the equivalent rsync via ssh with ascii
& append modes built in (kindly provide equivalents for get & put)


Thanks
U


On Fri, Oct 22, 2010 at 8:23 AM, David Bear <David.Bear@asu.edu> wrote:

> I don't think 'ascii' mode is important any longer. But if it is and you
> want 'append' you should consider using rsync over ssh. rsync treats all
> files as binary -- which has been safe for all use cases I have had when
> transferring files from windows to linux and back. running rsync over ssh
> is
> secure as well -- and you can use ssh public keys to make the connection
> passwordless and secure. rsync also will only transfer the 'diffs' -- so if
> file a, b, and c have not changed, but d has changed (and only the 15th
> thru
> the 60th byte) then only the changes to d will be sent. rsync does not
> handle ntfs alternate data streams, and sometimes seems to barf on unicode
> file names using asian charactersets. so you should test well.
>
> On Thu, Oct 21, 2010 at 5:59 AM, sunhux G <sunhux@gmail.com> wrote:
>
> > pscp or psftp do not support "ASCII" mode transfer which is available in
> > ftp
> > - this was a shortcoming I faced when transferring files between Windows
> &
> > Unix boxes. pscp/psftp doesn't support "APPEND" mode too while ftp
> does.
> >
> > Having said that ftp does not transfer data as securely as 'scp' or
> 'sftp'
> >
> > winscp supports "ASCII" though & I think if you're transferring a whole
> > subdirectory of files, winscp will detect which file to be transferred in
> > ASCII & which in Binary.
> >
> > U
> >
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-22-2010, 05:54 PM
David Bear
 
Default Windows to Linux File Transfer (Automatically)

On Fri, Oct 22, 2010 at 9:21 AM, sunhux G <sunhux@gmail.com> wrote:

> Hi David
>
> So, with the private+public key pair, we'll be doing something like
> ssh user@remotehost 'cat remotefile' | dos2unix >> localfile
> if I'm initiating ssh from my Linux box to a remote Windows box?
> Would the above command be equivalent of ftp's get with 'ascii' +
> 'append' feature ? Would this command be equivalent to ftp get with
> ascii & append mode?
>
>
I wouldn't use ssh that way. I would use something like this:

rsync -e ssh -a somelocalfile someuser@someremotehost:/somepath/somefile

I don't think ascii mode has any important meaning when transferring files
from windows to linux when you expect to continue to use the file on
windows. Even then, using a binary transferred file on linux presents little
problems if you use an editor that understands line endings. rsync will find
the differences between the files and transfer those.


> What would be the equivalent command for ftp put with ascii & append
> mode then? I can't figure this out. With ftp, this is plain sailing.
>
> Would you be able to provide the equivalent rsync via ssh with ascii
> & append modes built in (kindly provide equivalents for get & put)
>
>
> Thanks
> U
>
>
> On Fri, Oct 22, 2010 at 8:23 AM, David Bear <David.Bear@asu.edu> wrote:
>
> > I don't think 'ascii' mode is important any longer. But if it is and you
> > want 'append' you should consider using rsync over ssh. rsync treats all
> > files as binary -- which has been safe for all use cases I have had when
> > transferring files from windows to linux and back. running rsync over ssh
> > is
> > secure as well -- and you can use ssh public keys to make the connection
> > passwordless and secure. rsync also will only transfer the 'diffs' -- so
> if
> > file a, b, and c have not changed, but d has changed (and only the 15th
> > thru
> > the 60th byte) then only the changes to d will be sent. rsync does not
> > handle ntfs alternate data streams, and sometimes seems to barf on
> unicode
> > file names using asian charactersets. so you should test well.
> >
> > On Thu, Oct 21, 2010 at 5:59 AM, sunhux G <sunhux@gmail.com> wrote:
> >
> > > pscp or psftp do not support "ASCII" mode transfer which is available
> in
> > > ftp
> > > - this was a shortcoming I faced when transferring files between
> Windows
> > &
> > > Unix boxes. pscp/psftp doesn't support "APPEND" mode too while ftp
> > does.
> > >
> > > Having said that ftp does not transfer data as securely as 'scp' or
> > 'sftp'
> > >
> > > winscp supports "ASCII" though & I think if you're transferring a whole
> > > subdirectory of files, winscp will detect which file to be transferred
> in
> > > ASCII & which in Binary.
> > >
> > > U
> > >
> >
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



--
David Bear
College of Public Programs at ASU
602-494-0424
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-23-2010, 02:39 AM
sunhux G
 
Default Windows to Linux File Transfer (Automatically)

Thanks vm David.

> rsync -e ssh -a somelocalfile someuser@someremotehost:/somepath/somefile
Does the above command convert from MSDOS text file to Unix text file
(ie perform 'ASCII") ?


> I don't think ascii mode has any important meaning when transferring files
> from windows to linux when you expect to continue to use the file on
> windows.

It's important to me because the datafiles transferred will be used on Unix
subsequently.

Will appreciate if anyone/you tell me where do I insert "dos2unix" &
"unix2dos" in the above rsync or ssh+cat command (for both ftp
get & put equivalents).


Thanks again
U
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 12:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org