Re: Copy a file like unix cp -a --reflink

2013-12-20 Thread Anssi Saari
Paulo da Silva p_s_d_a_s_i_l_...@netcabo.pt writes: Hi! Is there a way to copy a file the same as Unix command: cp -a --reflink src dest without invoking a shell command? I vaguely remember this was asked and answered some time ago and the answer was no, even just for -a. In fact

Copy a file like unix cp -a --reflink

2013-12-18 Thread Paulo da Silva
Hi! Is there a way to copy a file the same as Unix command: cp -a --reflink src dest without invoking a shell command? Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Copy a file like unix cp -a --reflink

2013-12-18 Thread Joel Goldstick
On Wed, Dec 18, 2013 at 1:37 PM, Paulo da Silva p_s_d_a_s_i_l_...@netcabo.pt wrote: Hi! Is there a way to copy a file the same as Unix command: cp -a --reflink src dest without invoking a shell command? Thanks -- https://mail.python.org/mailman/listinfo/python-list You want to make

Re: Copy a file like unix cp -a --reflink

2013-12-18 Thread Jerry Hill
On Wed, Dec 18, 2013 at 1:37 PM, Paulo da Silva p_s_d_a_s_i_l_...@netcabo.pt wrote: Hi! Is there a way to copy a file the same as Unix command: cp -a --reflink src dest without invoking a shell command? I started to dig through the cp man page to see what that did, then gave up when each

copy a file

2009-07-14 Thread amrita
Dear all, Can anyone tell me that suppose i want to copy few lines from one text file to another then how can i do that.Looking forward for soon reply. Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA -- http://mail.python.org/mailman/listinfo/python-list

Re: copy a file

2009-07-14 Thread Krishnakant
On Tue, 2009-07-14 at 12:27 +0530, amr...@iisermohali.ac.in wrote: Dear all, Can anyone tell me that suppose i want to copy few lines from one text file to another then how can i do that.Looking forward for soon reply. very simple. open one file and open the source file. seek till to the

Copy a file from PDA

2007-06-06 Thread Tempo
Are there libraries out there that will assist me in copying a file from my Dell Axim PDA (Windows Mobile) and putting the copy onto my desktop (Windows XP)? Thanks so much. -- http://mail.python.org/mailman/listinfo/python-list

How to copy a file on Windows while preserving permissions

2007-04-12 Thread Andrew Koenig
The answer to this question probably involves pywin32 or a similar library. I would like to copy a file from one place to another on a Windows machine while preserving as much of the file permissions as it is possible to preserve with whatever my program's privileges happen to be. If the file

Re: How to copy a file on Windows while preserving permissions

2007-04-12 Thread Martin v. Löwis
Can someone who is more familiar than I with the vagaries of Windows file protection and the Python interfaces available to it point me in a useful direction? To copy a file along with its attributes, try SHFileOperation. Alternatively, if you have backup privileges, open the file

How to copy a file from one machine to another machine

2005-09-21 Thread Nico Grubert
Hi there, I would like to copy a file from one machine (machine #01) to another (machine #02). machine #01: Suse Linux 9.2, Samba 3, Python 2.3.5 machine #02: Windows Machine, Destination Dir: Share\temp\files\ Both machines are in one network so they can communicate each other. In order

RE: How to copy a file from one machine to another machine

2005-09-21 Thread Tim Golden
[Nico Grubert] | I would like to copy a file from one machine (machine #01) to another | (machine #02). | | machine #01: Suse Linux 9.2, Samba 3, Python 2.3.5 | machine #02: Windows Machine, Destination Dir: Share\temp\files\ | | Both machines are in one network so they can communicate each

Re: How to copy a file from one machine to another machine

2005-09-21 Thread Steve Holden
Nico Grubert wrote: Hi there, I would like to copy a file from one machine (machine #01) to another (machine #02). machine #01: Suse Linux 9.2, Samba 3, Python 2.3.5 machine #02: Windows Machine, Destination Dir: Share\temp\files\ Both machines are in one network so they can

RE: How to copy a file from one machine to another machine

2005-09-21 Thread Tim Golden
[Steve Holden] | Nico Grubert wrote: | Hi there, | | I would like to copy a file from one machine (machine #01) | to another (machine #02). | | machine #01: Suse Linux 9.2, Samba 3, Python 2.3.5 | machine #02: Windows Machine, Destination Dir: Share\temp\files\ | One possibility would

Re: How to copy a file from one machine to another machine

2005-09-21 Thread Markus Rosenstihl
Hi I think scp is also a solution. I am sure there exist free sshserveres for windows. THat would make the stuff a bit more secure, and the login can be automated via public-key. Regards Markus -- http://mail.python.org/mailman/listinfo/python-list

Re: How to copy a file from one machine to another machine

2005-09-21 Thread Nico Grubert
This isn't really a Python question, as this problem would exist irrespective of the language you are using. One possibility would be to run Samba (www.smaba.org) on the Linux machine so it offered a share to the Windows machine. Then you could just write to a UNC path