Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | JohnF <john@please.see.sig.for.email.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: copying files |
| Date | 2012-02-16 09:49 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <jhijf0$6lu$1@reader1.panix.com> (permalink) |
| References | <f62ccd5a-1cf4-4585-b8ca-c515a53d8a73@w9g2000vbv.googlegroups.com> |
Hans Vlems <hvlems@freenet.de> wrote: > I'm maintaing large numbers of Adobe Reader files (.pdf). One of my > programs, written in C (gcc 4.4.4), must make a copies between > different filesystems of these pdf files. > There is AFAIK no library function that does this, which leaves me two > options: > 1- use the console interface, i.e. build a command string and pass > this to system(). > 2- open the file, copy the contents and close the target > I'd rather avoid option 1 because system runs out of control of my > program. > My question is what read and write functions are best suited to copy > the (binary) pdf files? > 'Performance is not the main objective, but I want to be sure that the > copy finished succesfully and accurately. > Hans I'm guessing you're already aware of what Malcolm suggested in preceding followup, and it's not adequate. And since I've read your posts in comp.os.vms, I'm also guessing we're talking about an ods-2/5 filesystem at one end, and maybe a linux ext3, or whatever, at the other. Could you elaborate on that a little? And does linux have some ods-2/5 support so you can mount a vms disk? I wasn't aware of that. If you can indeed just mount it, then by all means try Malcolm's suggestion and see what happens. Should just work if the ods filesystem support is any good. Otherwise, how are you intending to even access the disk? Decnet for linux (note that it's no longer being very actively supported)? I think that would be the driving question that dictates an appropriate answer to your question. So you need to supply all that additional info first. By the way, I usually just ftp zipped files back and forth between vms and linux boxes on my soho lan. Despite your "out of control" issue, I'd just write a script (using C's system() if you want the script in C) to do the job, unless security's some really, really significant issue for your situation. -- John Forkosh ( mailto: j@f.com where j=john and f=forkosh )
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 01:03 -0800
Re: copying files Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-02-16 01:23 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 01:31 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 03:14 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 09:43 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 14:59 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 15:06 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 03:13 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 09:56 -0800
Re: copying files Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-02-16 10:11 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 15:11 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 15:21 -0800
Re: copying files Philip Lantz <prl@canterey.us> - 2012-02-17 09:53 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-18 07:22 -0800
Re: copying files Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-02-17 03:36 -0800
Re: copying files Willem <willem@toad.stack.nl> - 2012-02-17 22:04 +0000
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-18 07:28 -0800
Re: copying files Willem <willem@toad.stack.nl> - 2012-02-18 21:28 +0000
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-18 07:19 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 15:02 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 01:34 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 03:27 -0800
Re: copying files Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-02-16 17:11 +0000
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 14:57 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 09:54 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 06:41 -0800
Re: copying files JohnF <john@please.see.sig.for.email.com> - 2012-02-16 09:49 +0000
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 03:10 -0800
Re: copying files JohnF <john@please.see.sig.for.email.com> - 2012-02-16 11:52 +0000
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 06:56 -0800
Re: copying files David Thompson <dave.thompson2@verizon.net> - 2012-02-24 04:43 -0500
Re: copying files Ike Naar <ike@iceland.freeshell.org> - 2012-02-16 16:19 +0000
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 14:50 -0800
Re: copying files David Thompson <dave.thompson2@verizon.net> - 2012-02-24 04:43 -0500
Re: copying files Nobody <nobody@nowhere.com> - 2012-02-16 10:58 +0000
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 09:41 -0800
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 14:59 -0800
Re: copying files Nobody <nobody@nowhere.com> - 2012-02-17 06:25 +0000
Re: copying files Kleuske <kleuske@nowhere.net> - 2012-02-16 11:15 +0000
Re: copying files Hans Vlems <hvlems@freenet.de> - 2012-02-16 06:45 -0800
Re: copying files Keith Thompson <kst-u@mib.org> - 2012-02-16 09:49 -0800
csiph-web