同时复制到多个媒体 [英] simultaneous copy to multiple media
问题描述
我想节省将同一文件复制到各种不同目标存储空间的时间
(> 6 GByte)
通过USB连接到系统的媒体。 />
有没有(Python或其他)工具可以帮助我
这样做,所以我不需要复制
源文件先到第一个媒体,再到
秒等等?
Claudio
I would like to save time copying the same file
(>6 GByte) to various different target storage
media connected to the system via USB.
Is there a (Python or other) tool able to help me
to do this, so that I don''t need to copy the
source file first to the first media, then to the
second, etc.?
Claudio
推荐答案
On Sun,2005年3月20日11:41:10 -0000,Claudio Grondi
< cl *********** *@freenet.de>写道:
On Sun, 20 Mar 2005 11:41:10 -0000, Claudio Grondi
<cl************@freenet.de> wrote:
我想节省时间将同一文件
(> 6 GByte)复制到通过USB连接到系统的各种不同目标存储器。
是否有(Python或其他)工具可以帮助我
这样做,所以我不需要先将
源文件复制到第一个媒体,然后到第二个等等?
I would like to save time copying the same file
(>6 GByte) to various different target storage
media connected to the system via USB.
Is there a (Python or other) tool able to help me
to do this, so that I don''t need to copy the
source file first to the first media, then to the
second, etc.?
如果你使用* nix,也许你可以使用`tee`命令[1]和
将文件重定向到不同的地方。
例如,
cat< somefile> | tee file1 | tee file2> file3
我还没试过,但它应该可以工作。
[1]: http://unixhelp.ed.ac.uk/CGI/man-cgi?tee
HTH,
-
Swaroop CH
博客: http://www.swaroopch.info
书: http://www.byteofpython.info
If you are using *nix, maybe you can use the `tee` command[1] and
redirect the file to different places.
For example,
cat <somefile> | tee file1 | tee file2 > file3
I haven''t tried it out but it should work.
[1]: http://unixhelp.ed.ac.uk/CGI/man-cgi?tee
HTH,
--
Swaroop C H
Blog: http://www.swaroopch.info
Book: http://www.byteofpython.info
Claudio Grondi写道:
Claudio Grondi wrote:
我想节省时间复制同一个文件
(> 6 GByte)到各种不同的目标存储通过USB连接到系统的媒体。
是否有(Python或其他)工具可以帮助我这样做,所以我不需要将
源文件首先复制到第一个媒体,然后复制到
第二个等等?
I would like to save time copying the same file
(>6 GByte) to various different target storage
media connected to the system via USB.
Is there a (Python or other) tool able to help me
to do this, so that I don''t need to copy the
source file first to the first media, then to the
second, etc.?
从shell使用''tee''命令:
tee< file> / dest1 / file / dest2 / file
或运行两个并行复制(其中一个可能会从
缓存中读取文件):
cp file / dest1 / file& cp文件/ dest2 /文件
- Jacek。
Use ''tee'' command from shell:
tee <file >/dest1/file /dest2/file
Or run two copies in parallel (one of them probably will read file from
cache):
cp file /dest1/file & cp file /dest2/file
-- Jacek.
我在使用NTFS文件系统的Widows 2000盒子上。
两种到目前为止建议的方法都是
- tee.exe(我用的是 http://david.tribble.com/dos/tee.exe
DOS端口,将stdout重定向为NULL)和
- 并行拷贝(希望缓存完成这项工作)到目前为止比连续拷贝慢b
:
单拷贝速度12-15 MByte / s
有效提供
6-7 MByte / s,
tee.exe或两次并行复制
1 -3 MByte / s。
除了编写自己的
优化版tee.exe之外的任何其他建议,因为它是如此
很容易想出:
while(c = getchar()){fputc(c,fp1); fputc(c,fp2);}
?
有没有办法使用直接DMA
转移到多个目标目的地
(我复制到通过USB端口连接的驱动器)?
有人能指出我正确的方向吗?
Claudio
" Claudio Grondi" < CL ************ @ freenet.de> schrieb im Newsbeitrag
新闻:3a ************* @ individual.net ...
I am on a Widows 2000 box using the NTFS file system.
Both up to now suggested approaches as
- tee.exe (where I used the http://david.tribble.com/dos/tee.exe
DOS-port with redirecting stdout to NULL) and
- parallel copy (hoping caching does the job) are by far
slower than the consecutive copy:
single copy speed 12-15 MByte/s
which gives effectively
6-7 MByte/s,
tee.exe or twice copy in parallel
1-3 MByte/s.
Any other suggestions except writing an own
optimised version of tee.exe, because it is so
easy to come up with:
while(c=getchar()){fputc(c,fp1);fputc(c,fp2);}
?
Is there maybe a way to use a direct DMA
transfer to multiple target destinations
(I copy to drives connected via USB ports) ?
Can someone point me in the right direction?
Claudio
"Claudio Grondi" <cl************@freenet.de> schrieb im Newsbeitrag
news:3a*************@individual.net...
我想节省时间复制相同的文件
(> 6 GByte)到各种不同的目标存储器通过USB连接到系统的介质。
是否有(Python或其他)工具可以帮助我
这样做,所以我不需要先将
源文件复制到第一个媒体,然后再复制到
第二个等等?
> Claudio
I would like to save time copying the same file
(>6 GByte) to various different target storage
media connected to the system via USB.
Is there a (Python or other) tool able to help me
to do this, so that I don''t need to copy the
source file first to the first media, then to the
second, etc.?
Claudio
这篇关于同时复制到多个媒体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!