Tue Apr 3 04:57:33 UTC 2007
will be relatively slow for this purpose.
Is there some better way to go about doing this? It
doesn't have to faster than cp. Anything faster than
my current method is acceptable.
--- Jan Pfeifer <pfjan at yahoo.com.br> wrote:
> hi Jack,
> about the speed, I once tried to do a cp as fast as
> the gnu cp and
> didn't manage to do it. I think it used mmap or
> something like that. So,
> in fact, depending on the case, it could be faster
> than a direct
> implementation of the copy functionality. If one
> have _many_ files to
> copy, the shell invocation is surely slow.
> about security, you're totally right. Removing any
> "'" (apostrophe)
> character, sorrounding the file names with
> apostrophes and escaping
> initial "-" should do the job.
> >a) This is pretty slow.
> >b) Depending on the application, you've got to make
> sure your filenames' don't
> > contain `rm -rf $HOME` or similiar, as the shell
> will happily execute that.
> >This is the Linux C++ Programming List
> This is the Linux C++ Programming List
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
More information about the tuxCPProgramming